Aug 17, 2020 Installing Docker on Ubuntu 20.04. To use the latest version of Docker, we will install it from the official Docker repository. So, start by adding the GPG key for the official Docker repository to your system, after that add the repository configuration to the APT source with the following commands. Install Docker from Official Docker Repository. Install Docker from Ubuntu Repository. The version of the Docker package available in the Ubuntu base repository is a bit older than the version available in the official repository. Install Docker from Official Docker Repository. Docker is now available in two editions, Community Edition (CE). Step 2: Install Docker ce: Install a few prerequisite packages which let apt use packages over HTTPS: $ sudo apt install apt-transport-https ca-certificates curl software-properties-common.
- Add Docker Repository Ubuntu Linux
- Add Docker Repository Ubuntu Free
- Add Docker Repository Ubuntu Xenial
Docker Compose is a Python program that lets you easily deploy multiple containers on a server.
This is the easiest and recommend method. Unless you need the latest Docker Compose version for some specific reasons, you can manage very well with the docker compose version provides by Ubuntu. Docker Compose is available in the universe repository of Ubuntu 20.04 and 18.04 so make sure to enable it first: sudo add-apt-repository universe. Download a Docker Image in Ubuntu. To run a Docker container, first, you need to download an image from Docker Hub – provides free images from its repositories. For example, to download a Docker image called CentOS 7, issue the following command. Ubuntu is a Debian-based Linux operating system based on free software. There are two methods for installing Docker on Ubuntu 16.04. One method involves installing it on an existing installation of the operating system. The other involves spinning up a server with a tool called Docker Machine that auto-installs Docker on.
As you start exploring Docker, you'll learn that often to run a certain web-app, you'll need to run various services (like database, web-server etc) in different containers.
The easiest way to adding ppa (Personal Package Archive) into ubuntu (and it’s variant) repository is to use add-apt-repository. Unfortunately this tool sometime is not installed in the system especially on minimalist distribution such as docker image. The good news is, we can add it manually. Step 1 — Adding PPA link to source list.

Deploying multiple containers is a lot easier with Docker Compose.
In this tutorial, you'll learn two ways of installing Docker Compose on Ubuntu:
- Installing Docker Compose from Ubuntu's repository: Easier method but may not have the latest version of docker compose
- Installing the latest Docker Compose using PIP: Gets you the newer docker compose version
Keep in mind that to use Docker Compose, you must have Docker installed on Ubuntu.
Install Docker Compose from Ubuntu's repository
This is the easiest and recommend method. Unless you need the latest Docker Compose version for some specific reasons, you can manage very well with the docker compose version provides by Ubuntu.
Docker Compose is available in the universe repository of Ubuntu 20.04 and 18.04 so make sure to enable it first:
You probably won't need it but no harm in updating the local cache:
Now you can install Docker Compose in Ubuntu using this command:
You can check that Docker Compose is installed successfully by checking its version:
It should show an output like this:
Install the latest Docker Compose on Ubuntu using PIP
PIP stands for 'PIP Installs Package'. It's a command-line based package manager for installing Python applications.
Since Docker Compose is basically a Python program, you can use PIP to install it.
But before you do that, you need to install PIP on Ubuntu first.
Add Docker Repository Ubuntu Linux
Enable the universe repository first.
Install PIP now:
Now that you have PIP installed use it to install Docker Compose for all users on your Linux system:
Check the Docker Compose version to ensure that it is installed successfully:
You can see that Docker Compose installed via PIP is more recent version.
Add Docker Repository Ubuntu Free
I hope you were able to successfully install Docker Compose on Ubuntu with this tutorial. Questions and suggestions are welcome.
Become a Member for FREE
Add Docker Repository Ubuntu Xenial
Ubuntu In Docker Centos
Join the conversation.