Docker Essentials 3 - Installing Docker

From Wiki
Revision as of 10:01, 18 January 2021 by Jay (talk | contribs) (→‎Running a test container)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Welcome to my Docker Essentials series, which teaches you the basics you'll need to know in order to get started with Docker. In this video, I go over the installation process for Windows 10, macOS, and Ubuntu.

Relevant Links
Original Video
Docker desktop software

Installing Docker

Windows 10 and macOS

The third video in the series goes over the installation of Docker on a host system. For Windows and macOS, you can download the Docker desktop software from the official site (link is above). The video also shows the process of installing the software in Ubuntu, which is done via terminal commands instead of downloading the software from the website.


For Ubuntu, the following commands are used to install Docker:

First, install updates
 sudo apt update
 sudo apt dist-upgrade
Install the required package for Docker
 sudo apt install
Ensure that Docker is started and enabled

By default, the Docker engine on Ubuntu won't be running or enabled after you install the package. You can fix this by running the following commands:

 sudo systemctl enable docker
 sudo systemctl start docker
Add your user to the docker group (optional)
 sudo usermod -aG docker <username>

Running a test container

The "hello-world" container is a great way to test that Docker is installed and working properly. Regardless of the operating system, after installing Docker you can run the test container with the following command:

 docker run hello-world

Note: You will need to prefix that command with 'sudo' on Ubuntu if you didn't add your user to the docker group.