11/24/2021»»Wednesday

Ubuntu Docker Repository

Feb 28, 2018 Notice that docker-ce is not installed, but the candidate for installation is from the Docker repository for Ubuntu 16.04. The docker-ce version number might be different. Step 5 – Finally, install Docker: sudo apt-get install -y docker-ce. Docker should now be installed, the daemon started, and the process enabled to start on boot. In my case, there were multiple docker-ce repositories available and the command was trying to install latest version which was “5:19.03.23–0ubuntu-bionic”.

Docker is an open-source platform for developing, testing, and running applications. Docker allows to package and run an application in container. A container is an isolated environment which contains everything needed for application to run.

Ubuntu Docker Repository

This tutorial explains how to install Docker Community Edition (CE) on Ubuntu 20.04.

Prepare environment

Update the package lists using the following command:

Install package which allows to use a repository accessed via the HTTP:

Install Docker CE

Ubuntu

Download GPG key and add to a specified directory:

Ubuntu Docker Repository Software

Ubuntu Docker Repository

Add the Docker CE repository:

Install the Docker CE:

By default, root and user with sudo privileges can use Docker. During installation docker group is created. So if you want to allow to use Docker for non-root users, you can add user to the docker group.

Add current user to docker group:

To make changes to take effect, logout and login to your machine. After you’re reconnected, check Docker version:

We can use the following command to determine if Docker service is running:

We can also stop, start and restart the Docker service:

Testing Docker CE

To test that Docker successfully installed, you can run the hello-world image.

The command downloads a test image, runs it in a container, prints message, and exits.

Uninstall Docker CE

If you decided to completely remove Docker CE and related dependencies, run the following command:

Ubuntu Docker Repository Tutorial

When it finished, remove the docker group:

During installation docker0 network interface is installed. You can remove it with command:

Ubuntu 18.04 Docker Repository

Remove GPG key and repository:

Ubuntu Docker Repository Mirror

You can also remove Docker configuration, images, containers, and other related directories:

Most Viewed Posts