Docker Installation

Docker Installation in Ubuntu:

1. Update the repository by using below command

sudo apt update

2. Update the repository by using below command

sudo apt install docker.io -y

To check whether Docker is installed or not just simply write docker on your terminal

Installation in Windows

Follow the below steps to install docker on windows

  1. Click on the below link to download DockerToolbox.exe. https://download.docker.com/win/stable/DockerToolbox.exe
  2. Once the DockerToolbox.exe file is downloaded, double click on that file. The following window appears on the screen, in which click on the Next.
    docker toolbar
  3. Browse the location where you want to install the Docker Toolbox and click on the Next.
    location toolbar
  4. Select the components according to your requirement and click on the Next.
    components
  5. Select Additional Tasks and then click on the Next.
    additional
  6. The Docker Toolbox is ready to install. Click on Install.
    install docker
  7. Once the installation is completed, the following Wizard appears on the screen, in which click on the Finish.
    dockar wizard
  8. After the successful installation, three icons will appear on the screen that are: Docker Quick start Terminal , Kitematic (Alpha), and OracleVM VirtualBox. Double click on the Docker Quick start Terminal .
    quick start terminal
  9. A Docker Quick start Terminal window appears on the screen.
    quick start terminal window

To verify that the docker is successfully installed, type the below command and press enter key.

docker run hello-world   

The following output will be displayed on the screen, otherwise not.

visible screen

Docker version can be checked with following command.

docker --version 

docker version

Subscribe Now