Docker Install Ubuntu 20.04

2/13/2022by admin

Tutorial to download and install Cockpit Docker package, Container Image and customize its Settings from Cockpit’s Web GUI Dashboard on Ubuntu 20.04/18.04 LTS Linux Server.

The Cockpit is an easy solution to manage server resources remotely using the graphical web interface. It is not only light in weight but also present to install in most of the Linux repositories such as in popular Ubuntu, RedHat, Fedora, and CentOS to install with just a single command.

May 21, 2020 This tutorial covers how to install Docker on an Ubuntu 20.04 machine. Docker is an open-source containerization platform that allows you to quickly build, test, and deploy applications as portable containers that can run virtually anywhere. How to install Docker on Ubuntu 20.04 Server. The second thing is, we must have apart from the server management platform is Docker itself, otherwise, how will we manage it using Cockpit, remotely using the browser. Thus, run the below command to download and install Docker’s latest version on the Ubuntu server. Sudo apt install

Well, if we talk about Docker container management in Cockpit, then this really helpful to easily manage virtual machines or containers graphically. Yes, we can install and delete containers using few mouse clicks. No need to go through the command line to manage them. However, in Ubuntu 20.04 the Docker package for Cockpit is not available to install but we can do that manually by directly installing its Deb file. Here, we let you know how to do that in this tutorial.


  • Open Cockpit Web Interface to Manage Docker container

How to Install Cockpit on Ubuntu 20.04

Although, if you are following this tutorial then you would already have Cockpit installed on your Ubuntu server. However, if not then here is the command to that.

First, update your system packages-

Now, run the command to install Cockpit

How to install Docker on Ubuntu 20.04 Server

The second thing is, we must have apart from the server management platform is Docker itself, otherwise, how will we manage it using Cockpit, remotely using the browser.

Thus, run the below command to download and install Docker’s latest version on the Ubuntu server.

Yes, we don’t need to add any third-party repo because the packages to install Docker are available in the official repository of Ubuntu.

Next, once this Container platform installed, add your current user into Docker’s group, so that you won’t need to use sudo to run its commands.

Now, reload the Shell using the below command or alternatively you can log out and log in to your current session, as well.

Install Cockpit Docker module

This is the main part of the tutorial because without Cockpit’s Docker package you will not be able to access your containers from the Web interface. Thus, first, download it using the below command-

Note– It is a single command, hence, copy whole and then paste it into your terminal.

And then install the downloaded Cockpit-Docker Debian package-

Open Cockpit Web Interface to Manage Docker container

Use any system that can access your Ubuntu 20.04 LTS server or desktop IP address. And open web browser – type server-IP-address with cockpit port that is 9090.

For example192.168.0.11:9090

A Login page will appear, enter your Ubuntu username and password.

Docker Containers

After that Select Docker Containers option given on the Cockpit’s Dashboard Menu.

Download Image

To download any Docker app image from Hub, click on the “Get New Image” option.

Image Search

Type the name of the App Image that you want to download for creating a new container. Here we are using Ubuntu image.

Run Image

Once the image downloaded and extracted by the system, click on the Run icon and you will see a pop-up to customize container settings before actually starting it. You can change the Container Name, increase or decrease Memory and CPU capacity, mount container volume, link to another container, and manage ports. If you are new to this, then simply click on the RUN button to start it.

The running container will appear on the dashboard.

Access conainter shell

Once the installed Docker container service has been started you can either access it from the Container area or via SSH or directly from the Terminal of Cockpit.

Click on the running Container Name.

You will see complete information along with a small Command line terminal window. You can run all command to your docker machine directly from here. If you want to change the size, the simply Increase the size of your current browser tab, by pressing Ctrl button on keyboard and rolling scroller button on mouse.

Alternatively, click on the Terminal option given in the menu and manually connect to the running container. For example,

docker run -itconainer-name

Here we have ubuntu conainer then the above command will be-

Docker install ubuntu 20.04 u 20 04 cd on mac

Docker is a container-based application framework, which wraps a specific application with all its dependencies in a container. Docker containers can easily to ship to the remote location on start there without making entire application setup.

The Docker official team provides PPA for installing Docker on Ubuntu 20.04 using PPA. You just need to configure Docker PPA to your system before installing Docker on Ubuntu system.

This tutorial will help you to install Docker on Ubuntu 20.04 LTS Focal Fossa systems.


Login to your Ubuntu 20.04 system with sudo privileged user. Then run the following commands to install required packages.

Step 1 – Installing Docker on Ubuntu

First of all, import the GPG key to your system to verify packages signature before installing them. To import key run the below command on terminal.

After that add the Docker repository on your Ubuntu system which contains Docker packages including its dependencies. You must have to enable this repository to install Docker on Ubuntu.

Your system is now ready for Docker installation. Next, execute the following commands to upgrade apt index and then install Docker on Ubuntu 20.04 Linux system.

After successful installation of Docker community edition, the service will start automatically, Use below command to verify service status.

Your system is now ready for running Docker containers. Use our Docker Tutorial for Beginners to working with Docker.

Step 2 – Manage Docker Service

As usual Docker service is also managed under the Systemd daemon. You can use systemctl commands to stop, start or view status of Docker service.

Run the below command to view service status:

Use below command to stop, start or restart Docker service:


Step 3 – Run Docker Hello World

You have successfully installed Docker on Ubuntu system. The Docker engine service is also running fine. Next, run a hello world example to verify that everything is fine.

Docker Install Ubuntu 20.04 0 04 U 20 04 Software Center

To run Docker hello world example, open a terminal and type:

You will see the results like below. It means Docker is properly configured on your system.

Install Docker Ubuntu 20.04 Digitalocean

Step 4 – Install Docker Compose

Download the latest version of Docker compose tool from Github. Use the below commands to download and install Docker compose 1.26.0. Before installing make sure compatibility with your docker version.


Docker Install Ubuntu 20.04

All done, you have successfully installed Docker on Ubuntu 20.04 system using PPA. Additionally, you also have configured Docker-compose on your system.

Comments are closed.