Home | Tutorials | Smart-Cloud | Smart-EIS | License | FAQ | Contact

Last Updated: April 11, 2021

In this tutorial we will show you how install Docker on Windows, MacOs and Ubuntu

Windows

Windows 10 Home

  1. For Windows 10 Home, see System requirements for WSL 2 backend.

  2. After setting up WSL 2 backend proceed with the installation steps below.

Windows 10 Pro, Enterprise, or Education (Build 17134 or higher)

  1. Download the latest version of Docker https://hub.docker.com/editions/community/docker-ce-desktop-windows/

  2. Open the downloaded file to run Docker installer

  3. Finish the installation

  4. Open Docker and a Command line window

  5. Now lets run the Docker getting-started example

    This command will pull the Docker image and will run it
    docker run -d -p 80:80 docker/getting-started
  6. Note how we have the image added to the Docker app home, with some useful actions

MacOS

  1. Visit https://hub.docker.com/editions/community/docker-ce-desktop-mac/

  2. Click on Get Docker

  3. Open the installed file

  4. Drag and drop Docker into Applications

  5. Now open Docker

  6. Give it the needed permissions (if applicable)

  7. Now you should see the home of Docker app

    docker home
    Figure 1. Docker home
  8. You can check the status of Docker on the left-bottom corner. (if its green then Docker is running)

  9. Now lets run the Docker getting-started example

  10. Copy the command on the home page of the Docker app

    docker run -d -p 80:80 docker/getting-started
  11. Run it in the terminal

  12. This command will pull the Docker image and will run it

    docker getting started
    Figure 2. Running Docker getting-started
  13. Note how we have the image added to the Docker app home, with some useful actions

    docker actions
    Figure 3. Docker actions

Ubuntu

  1. Update the list of available packages then install the newer versions of the packages

    apt-get update && apt-get upgrade
  2. Uninstall older version of Docker

    sudo apt-get remove docker docker-engine docker.io
  3. Install the newest version

    sudo apt-get remove docker docker-engine docker.io
  4. To verify that docker is installed

    docker --version
    Docker needs to be configured to run at startup
    sudo systemctl start docker
    sudo systemctl enable docker

Home | Tutorials | Smart-Cloud | Smart-EIS | License | FAQ | Contact