

The output should show that the service is active and running and should look something like the following: :/home/ubuntu# systemctl status docker Verify that it’s running: $ sudo systemctl status docker Now the last thing in this step is to install Docker: $ sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-pluginĭocker is now installed, the daemon is running, and the process is set to start on boot. Go ahead now and update the package database using the the newly added repo’s Docker packages: $ sudo apt-get update

$(lsb_release -cs) stable" | sudo tee /etc/apt//docker.list > /dev/null Now add the Docker repository to APT sources: $ echo \ $ curl -fsSL | sudo gpg -dearmor -o /etc/apt/keyrings/docker.gpg Now add the GPG key to your system’s official Docker repository: $ sudo mkdir -p /etc/apt/keyrings

Next, to enable apt to use packages over HTTPS, you will need to install a few prerequisite packages: $ sudo apt install apt-transport-https ca-certificates curl software-properties-common We’ll be introducing a new package source for this, so install the package after adding the GPG key from Docker to ensure the downloads’ validity.īefore you begin, you must update your existing list of packages: $ sudo apt-get update To ensure that we obtain it, we’ll install Docker from the official Docker repository. The Docker installation package offered in the official Ubuntu repository is unlikely to be the most recent version.

Set up one Ubuntu 20.04 or 22.04 LTS server.You will need the following things to follow this guide: You will first install Docker, then handle containers and images before storing an image in a Docker Repository. This article will walk you through installing and configuring Docker Community Edition (CE) on Ubuntu 20.04 and 22.04 LTS. Containers are comparable to virtual machines, except they are more portable, resource-friendly, and dependent on the host operating system. Docker, as a programme, simplifies the administration of application processes in containers, allowing you to execute your apps in resource-isolated processes.
