Installing Docker on Ubuntu 21.04, 21.10, and 20.04

Last updated on November 1, 2021 A Goodman Loading... Post a comment

This short and straight-to-the-point article shows you how to install Docker on Ubuntu 21.04 and 21.10 (it also works fine on Ubuntu 20.04 LTS). Without any further ado, let’s see the steps to get the job done.

1. Log into your Ubuntu server with your username and password (make sure you have administrator privileges).

2. Updating the apt package index by executing the following command:

sudo apt-get update 

After a few seconds, you will see something similar to this:

2. Now we can install Docker by running the command below:

sudo apt-get install

And type Y to continue when you are asked Do you want to continue?:

When the process is done:

3. To verify that Docker is successfully installed, we can try the following command:

docker --version

My result:

You can get a different version number but it’s totally fine.

Further reading:

I have made every effort to ensure that everything in this article works properly, but I may have made some typos, mistakes, or omissions. If so, please send me an email: [email protected] or leave a comment to report errors.

Notify of
Inline Feedbacks
View all comments

You May Also Like