Install Docker Community Ubuntu


Estimated reading time: 6 minutes

  1. Install Docker Community Edition Ubuntu 20.04
  2. Install Docker In Ubuntu 20
  3. Install Docker Engine On Ubuntu
  4. Docker Community Install Ubuntu

Supported platforms

Docker Engine is available on a variety of Linux platforms,macOS and Windows 10through Docker Desktop, and as a static binary installation. Findyour preferred operating system below.


Platformx86_64 / amd64arm64 (Apple Silicon)
Docker Desktop for Mac (macOS)
Docker Desktop for Windows


Docker provides .deb and .rpm packages from the following Linux distributionsand architectures:

Install Docker Engine. Estimated reading time: 5 minutes. Supported platforms. Docker Engine is available on a variety of Linux platforms, macOS and Windows 10 through Docker Desktop, and as a static binary installation.Find your preferred operating system below. Hi mire12 and welcome to Ask Ubuntu. I hope you find the site useful and continue to use Ubuntu for years to come! If you take a look at Docker's Installation Page you'll see that in order to configure the repository you are going to install docker from you'll run.

  • I'm attempting to install the Dell openmanage tools on an ubuntu 20.04 docker container and I'm running into some issues. The largest, most trusted online community for developers to learn, share their knowledge, and build. Is there any way for me to get this package to install on an ubuntu docker container? Ubuntu systemd docker.
  • Install a Docker container and then install Kubernetes with two nodes on Ubuntu 20.04. How to install Docker; How to install Kubernetes; How to configure a master and two worker node; How to join a worker node to a Kubernetes cluster; So, let's start the installation. Step 1 - Update Ubuntu. Always recommended updating the system packages.
  • Configuring Docker to start on boot. Ubuntu uses systemd to manage services. Docker comes with a pre-built systemd configuration, and you can enable the service to start automatically on boot. Sudo systemctl enable docker. If you don’t want Docker to start automatically, disable it in the same way.
Platformx86_64 / amd64arm64 / aarch64arm (32-bit)s390x

Other Linux distributions


While the instructions below may work, Docker does not test or verifyinstallation on derivatives.

  • Users of Debian derivatives such as “BunsenLabs Linux”, “Kali Linux” or “LMDE” (Debian-based Mint) should follow the installation instructions forDebian, substituting the version of their distro for thecorresponding Debian release. Refer to the documentation of your distro to findwhich Debian release corresponds with your derivative version.
  • Likewise, users of Ubuntu derivatives such as “Kubuntu”, “Lubuntu” or “Xubuntu”should follow the installation instructions for Ubuntu,substituting the version of their distro for the corresponding Ubuntu release.Refer to the documentation of your distro to find which Ubuntu releasecorresponds with your derivative version.
  • Some Linux distributions are providing a package of Docker Engine through theirpackage repositories. These packages are built and maintained by the Linuxdistribution’s package maintainers and may have differences in configurationor built from modified source code. Docker is not involved in releasing thesepackages and bugs or issues involving these packages should be reported inyour Linux distribution’s issue tracker.

Docker provides binaries for manual installation of Docker Engine.These binaries are statically linked and can be used on any Linux distribution.

Release channels

Docker Engine has three types of update channels, stable, test,and nightly:

  • The Stable channel gives you latest releases for general availability.
  • The Test channel gives pre-releases that are ready for testing beforegeneral availability (GA).
  • The Nightly channel gives you latest builds of work in progress for thenext major release.


Year-month releases are made from a release branch diverged from the masterbranch. The branch is created with format <year>.<month>, for example20.10. The year-month name indicates the earliest possible calendarmonth to expect the release to be generally available. All further patchreleases are performed from that branch. For example, once v20.10.0 isreleased, all subsequent patch releases are built from the 20.10 branch.

Install Docker Community Edition Ubuntu 20.04


In preparation for a new year-month release, a branch is created fromthe master branch with format YY.mm when the milestones desired byDocker for the release have achieved feature-complete. Pre-releasessuch as betas and release candidates are conducted from their respective releasebranches. Patch releases and the corresponding pre-releases are performedfrom within the corresponding release branch.


Nightly builds give you the latest builds of work in progress for the next majorrelease. They are created once per day from the master branch with the versionformat:

where the time is the commit time in UTC and the final suffix is the prefixof the commit hash, for example 0.0.0-20180720214833-f61e0f7.

These builds allow for testing from the latest code on the master branch. Noqualifications or guarantees are made for the nightly builds.


Docker Engine releases of a year-month branch are supported with patches asneeded for one month after the next year-month general availability release.

This means bug reports and backports to release branches are assesseduntil the end-of-life date.

After the year-month branch has reached end-of-life, the branch may bedeleted from the repository.


Backports to the Docker products are prioritized by the Docker company. ADocker employee or repository maintainer will endeavour to ensure sensiblebugfixes make it into active releases.

If there are important fixes that ought to be considered for backport toactive release branches, be sure to highlight this in the PR descriptionor by adding a comment to the PR.

Upgrade path

Patch releases are always backward compatible with its year-month version.


Docker is licensed under the Apache License, Version 2.0. SeeLICENSE for the fulllicense text.

Reporting security issues

The Docker maintainers take security seriously. If you discover a securityissue, please bring it to their attention right away!

Please DO NOT file a public issue; instead send your report privatelyto [email protected]

Security reports are greatly appreciated, and Docker will publicly thank youfor it.

Get started


After setting up Docker, you can learn the basics withGetting started with Docker.

docker, installation, install, Docker Engine, Docker Engine, docker editions, stable, edge

This is the first in our Docker tutorial series. In this article, you’ll learn how to install the latest Docker on Ubuntu and how to configure it.

By latest Docker, I mean the latest Docker Engine Community Edition (CE). Ubuntu also has Docker packages available in their repository, however, I would advise using the community edition.

For this tutorial, I created a new Ubuntu server on Linode. You may sign up for Linode and deploy your own Linux server in less than two minutes. They even provide $60 free credits to our readers.

Installing Docker on Ubuntu

So, I presume you have an Ubuntu system installed. The first thing you should do is to update your system:

If you already have any kind of Docker package installed, you should remove them as well to avoid conflict.

Now the following steps will get you an operational version of Docker CE up and running on your system.

Step 1: Enable installation via HTTPS

You need the following packages for using apt over https:

Some of the packages might already be installed on your system.

Step 2: Add the official Docker GPG key

Before you add the new repository from Docker, add its GPG key. Use the curl command to download the GPG key and then add it using apt-key command. You can combine both commands with pipe:

It’s a good idea to verify the key to avoid bad surprises:

It’s output should be like this:

Install Docker In Ubuntu 20

Step 3: Add the Docker repository

Now that you have the repository key added, add the repository itself:

If you are using Ubuntu 16.04, you may have to update the repository as well:

Step 4: Install Docker


Everything is set. Now you should install Docker and its related packages:

Setting up Docker on Ubuntu

You have Docker installed but it’s not over just yet. You need to do some other basic setup and configuration in order to run it smoothly.

1. Run docker without sudo

One thing you should do is to add your username to docker group so that you don’t need to use sudo all the time.

Install docker community edition ubuntu 20.04

The docker group may already exist. Use the groupadd command to create the group docker:

Install Docker Engine On Ubuntu

Add your username or other users to this group with usermod command. Change username with the actual user name.

2. Verify docker installation by running a sample container

Docker Community Install Ubuntu

First, restart Ubuntu and then confirm that Docker is running fine by downloading and running the hello-world docker image:

It’s output should be like this:

Install Docker Community Ubuntu

To give you a better understanding, let me explain what happened here.

  • The Docker client contacted the Docker daemon.
  • The Docker daemon pulled the “hello-world” image from the Docker Hub.
  • The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading.
  • The Docker daemon streamed that output to the Docker client, which sent it to your terminal.

3. Run Docker at each boot

To make sure that Docker runs automatically on each boot, use this command:

That’s it. You have just learned to install Docker CE on Ubuntu Linux. Stay tuned for more Docker tutorials in this series.

  • Most Viewed News

    • Whatsapp Desktop Mac Download
    • Slack Dmg Download
    • Free Microsoft Office 2019 Download For Mac