How to use Docker in Windows ? - docker

I have few questions about using Docker in Win 10 Pro.
I have already installed Docker, but I need help to create environment to develop using php.
If my idea is wrong, please, correct it.
I need a any linux OS as image base, on it I need php, nginx, git, composer, mysql etc. Do I will use this image to create containers for my projects.
Where I can download this image/configuration ?
Or I don't need linux OS ?

You should take a look to official Docker documentation.
Here's some documentation that I think it can help you about this particular subject :
Create a base image
Best practices for writing Dockerfiles

Related

How to ccreate Windows10 GUI docker image

Is it possible to create a docker image for Windows 10 with GUI support? I want to run the browser and some stand-alone app on windows GUI. So far I have found the same for CentOS for not for windows.
Thanks
I am not sure if windows has allowed to use its kernel for free images as its the revenue generating platform for them.
Rancher group works on making GUI based docker images you can refer there site for such information link : https://rancher.com/
Rancher has also few images of windows on hub.docker.com for demonstration purpose which you can checkout freely. The only concern is they are large in size around 2.5 Gigs
This may not be relevant but ios images are already available if you want to try you can refer the link : https://github.com/sickcodes/Docker-OSX

How can I get a tomcat docker image based on rhel7?

The one listed on https://hub.docker.com/_/tomcat is based on debian. Where can I get a rhel based image? Or is there a way I can create it by myself.
I am currently working on rhel 7.6 and have docker installed on my machine?
You have to build it yourself because RHEL is proprietary and therefore underrepresented in docker hub. You could go for a centos version though, which is almost identical.
Note: RHEL would be considered an extremely unusual choice for a container OS. Are you sure you're doing the right thing? If this is a rule given to you by your employer then it's wrong and you should go fix that instead -- it'll be easier than trying to build rhel containers.
You could take a look at this as a starting point for ideas on how to build it yourself: https://github.com/sclorg/rhscl-dockerfiles/blob/master/centos7.python27/Dockerfile.rhel7

Convert Dockerfile/docker-compose.yml into Executable

I am trying to package an Electron app that relies on several Docker containers into a single executable. I would like to be able to convert Dockerfile's into executables runnable on Windows. Is this possible? Can I pull this off without having Docker installed on the client machine? How can I do this?
It is not possible.
Take into account, that docker images are packaged for certain architecture. Kernel must be compatible. And sure, you need docker engine to work on client machine. I think windows is not ready for this.
BRs

Step by Step Setup Guide to Neo4j Mazerunner in Windows

I would like to use the Spark-graphX packages available to Neo4j through Mazerunner, however I am an analyst and not a software person. I am running Windows 7 on my laptop and Neo4j 2.3.0, and would like a step-by-step guide explaining how I can set-up Mazerunner for both Community & Enterprise. There's a lot of mention of dockers and containers, and I have no idea what these are, or how to set them up. Simple instructions would be of sooo much help! :)
Docker is primarily Operating System Level Visualization technology designed to run on Unix based systems (Linux,Mac,FreeBSD). Luckily Docker provides a Windows version that sort of does the same thing on Unix.
What happens is, after you have installed Docker, it allows you to run what they call containers which are basically virtual machines on top of your host (Windows 7 Running Docker). This allows you to run services like Neo4j in an isolated environment. Docker also allows you to download and install pre-configured, pre-compiled images of operating systems that usually provide some sort of service or have some software pre-installed.
In your case, I believe all you have to do is:
First install Docker
Use "Docker Compose" to download and install the images.
Continue Reading the Tutorial as you have now installed the required docker images
Note: Some of the operations, like the one in Step 2 will require command-line access and Also the creation of a "docker-compose.yml" so, be sure to visit all the links I have provided. Spend a little time going through them and you should be alright.
PS: great blog. definitely bookmarking it!

Making use of docker for development: a use case

my question is little vague but I tried looking for the answer here and there but could not understand if I can leverage docker for my work. My requirements
I usually try different versions of java, python and other software like different versions of eclipse, Linux package and other tools. This at the end make my Ubuntu installation a complete mess and some time completely broken. Then I started using Vm it solve most of the problem but make my pc very slow for frequent switching.
So my question can I achieve my work using docker without affecting my os? Can I run gui application, install different package without affecting underlying OS.
Switch actively between different docker container and underlying os.
Clean/remove unused/broken install of docker instance (containers?) etc. Any pointer to similar use case or how to would be helpful.
Thanks.
Ps- if it doesn't fit for SO then please move it to where it is best fitted. Sorry for non programming question.
Can it be done?
yes, there are examples of docker images that run graphical application, but running those containers might be a bit tricky. See for instance Can you run GUI apps in a docker container?
Is Docker the right tool for your problem ?
Maybe a package manager such as Nix would be better suited, as graphical software installed with it won't have any issue. With Nix you can install side-by-side many versions of a single software without interference.

Resources