Verified and Tested 06/02/21


This how-to will help you with your Docker setup on Ubuntu 20.04 LTS so that you can successfully build, ship, and run distributed applications quickly and effectively via its own Docker Engine. With technology on the rise and the popularity of Apps quickly rising, docker is preferred by many system admins and developers to maximize their creativity in an App production environment.

What Do You Need?

You need a Ubuntu 20.04 LTS server configured with a static IP address. If you do not have a server already, you can visit our VPS Hosting page and spin a new server up in under 30 seconds.

Server Preparation

To get started, log in to your Ubuntu 20.04 LTS server via SSH or the VNC Console located here. Atlantic.Net Cloud servers are set up as minimal installations to avoid having unnecessary packages from being installed and never used. If some software packages that you’re used to using aren’t installed by default, feel free to install them as needed.

Let’s make sure that your server is fully up-to-date.

apt-get update -y ; apt-get upgrade -y

With the server up-to-date, we can continue the installation process on your server.

Install Docker on Ubuntu 20.04 LTS

We will begin by installing with the following:

sudo apt-get install

We must then make a symbolic link between the original location of the Docker installation so the program knows where to look for it.

sudo ln -sf /usr/bin/docker /usr/local/bin/docker
sudo sed -i '$acomplete -F _docker docker' /etc/bash_completion.d/

Furthermore, If you would like to install the latest version on your system, we will need to install additional dependencies in the following order to ensure everything checks out.

sudo apt-get install apt-transport-https ca-certificates curl software-properties-common -y
sudo curl -fsSL | apt-key add -
sudo add-apt-repository "deb [arch=amd64] focal stable"
sudo apt-get update
sudo apt-get install docker-ce -y

Finally, you can verify that the latest version of docker is installed with the following:

sudo docker --version

Once done, you can create your first container and test the installation:

sudo docker run -i -t ubuntu /bin/bash

What Next?

Congratulations! You now have a server with a Docker platform for your developing app environment. Thank you for following along with this how-to! Check back with us for further updates and reliable VPS hosting from Atlantic.Net.