Tuesday, February 5, 2019

How to Install Docker in Windows 7

Docker:
Docker is the most revolutionized technology in virtualization world nowadays. Docker is actually an open source project which provides container technology. A container is a lightweight VM(virtual machine) or a process which allows us to install Linux based applications inside it. The container doesn’t have its own Kernel, RAM, CPU and Disk but it uses the underlying OS kernel, RAM, CPU cores and Disk.



Prerequisites: 
  • Windows 7 Machine enabled Virtualization
  • A user with administrator access
  • Installed VBox software.
Step 1- Download and Install Docker Toolbox:
In this section, We will install Docker Toolbox software and prerequisites applications.
If you have already installed Virtual box in your System, don't install it with Docker Toolbox package. Let's follow the steps below to start the installation.
Once download finished, Double click on installer.
Click Next to continue the installation
Choose Full Installation and Click on Next

Click Next to continue the installation

Choose next 

Click on the Install button to start the installation, It may take a few minutes to finish the installation.
Click on Always install software from Oracle Corporation and choose install.
Once Done click on finish.
After, Successful installation, you will see these three shortcuts on the desktop. 


Docker toolbox for Windows Installation completed successfully and ready for use.

Step 2- Initial setup of Docker toolbox:
After, Successful installation. double click on Docker Quickstart Terminal. It will download boot2Docker Iso file. Please wait until the process gets completed.

After, Successful initialization you will following windows.

Docker-Machine has successfully initialized and ready to use. 

Step 3- Basic Docker command.
Following are some basic command.

  • Check docker machine IP

$ docker-machine ip
192.168.99.100

  •  Check Docker-machine Status

$ docker-machine status
Running

  • Create First Container:
$ docker run -dit --name web -p 80:80 ubuntu
It will download the latest ubuntu docker image and will create a container.
  • Check running container
$ docker ps 
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS                NAMES
e38d28990a16        ubuntu              "/bin/bash"         27 seconds ago      Up 21 seconds       0.0.0.0:80->80/tcp   web
Newly created Container up and running. Now, You are ready to build more docker image using docker file.

You can check here- how to build DockerImage using docket file.

Thanks for the reading blog!!

No comments:

Post a Comment