How to Install Docker Desktop on Ubuntu 22.04 LTS

Docker Desktop is now available for all developers using a Linux desktop environment. Here's how to install it on Ubuntu 22.04 LTS.

Linux support for Docker Desktop has been the most requested feature among the Docker community for 12 months. In response to these needs, Docker Inc. announced at DockerCon 2022, its annual conference, that Docker Desktop is now available for Linux.

Some Linux developers who have only used Docker Engine may be unaware of Docker Desktop, so let’s go over what Docker Desktop is.

The Docker Desktop for Linux interface makes it easier for developers to manage containers, images, and volumes by allowing them to visualize all their container resources using the Docker Dashboard. It’s a container-integrated development environment that includes Docker Engine and the Docker CLI client.

Let us walk you through installing Docker Desktop on Ubuntu 22.04 LTS. However, if you come across this guide while looking for one for Ubuntu 24.04 LTS, follow this link.

System Requirements

To install Docker Desktop successfully on Ubuntu, your host must match the following requirements:

  • A 64-bit version of Ubuntu 22.04 LTS
  • At least 4 GB of RAM
  • CPU virtualization support
  • KVM virtualization support
  • QEMU must be version 5.2 or newer
  • Desktop environment with system tray support.

Docker Desktop for Linux runs a Virtual Machine (VM) to ensure a consistent Docker Desktop experience with feature parity across all major operating systems.

How to Install Docker Desktop on Ubuntu 22.04 LTS

First, update the packages index and install the dependencies necessary to add a new Docker repository.

sudo apt update
sudo apt install ca-certificates curl gnupg lsb-release

Next, import the GPG key for the official Docker repository to your system. This security feature ensures that the software youโ€™re installing is authentic.

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpgCode language: JavaScript (javascript)

Use the following command to set up the Docker stable repository on your Ubuntu 22.04 system:

echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/nullCode language: PHP (php)

Finally, update the package database and install Docker.

sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io docker-compose-pluginCode language: CSS (css)
Installing Docker Engine on Ubuntu

So, the Docker engine should now be installed on your Ubuntu host. Now go to the Docker Desktop for Linux website and choose the “DEB package” file for download.

Download Docker Desktop for Linux DEB File

A file with a .deb extension is a Debian Software Package file. If you want to learn more about installing .deb files in Ubuntu, our excellent guide, “How to Install deb Files in Ubuntu,” may help you.

The installation process will follow once the system has finished downloading the package. To install Docker Desktop on Ubuntu, type the sudo apt install command followed by the full path to the file.

Because the downloaded DEB file is in the Downloads directory in our scenario, the command will look like this:

sudo apt install ./Downloads/docker-desktop-4.8.1-amd64.deb
Installing Docker Desktop on Ubuntu Linux

At the end of the installation process, the apt command displays an error when installing a downloaded package. Don’t worry; the message doesn’t represent an actual error, so just ignore it.

Installing Docker Desktop on Ubuntu Linux

That’s all. Once installed, Docker Desktop can be launched from the Activities menu. So go to the application launcher and search for “docker.” When its icon appears, click to run the same.

Starting Docker Desktop on Ubuntu

Docker Desktop will start and ask you to accept the terms. To do so, tick the checkbox and hit the “Accept” button.

Docker Desktop on Ubuntu

The Docker Desktop application will be launched. In addition, an icon will be available in the System Tray area, which you can use to manage it.

Docker Desktop on Ubuntu

From now on, managing your Docker containers will be quick and easy via a convenient graphical interface.

Docker Desktop on Ubuntu Successfully Installed

In addition, be aware that the Docker Desktop installation for Ubuntu upgrades the host’s Docker Compose and Docker CLI binaries. It installs Docker Compose V2 and lets users link it from the Settings panel as docker-compose.

Moreover, Docker Desktop places the new Docker CLI binary in /usr/local/bin and establishes a symlink to the original Docker CLI at /usr/local/bin/com.docker.cli.

You can check the versions of these binaries by running the following commands:

docker compose version
docker --version
docker version
Docker Desktop Binaries Version

To have Docker Desktop start when you log in, go to the Docker Desktop menu and choose “Settings” -> “General” -> “Start Docker Desktop when you log in.” Mark the checkbox and confirm by pressing the “Apply & Restart” button.

Enable Docker Desktop to run automatically when Ubuntu Linux starts

Last but not least, the Docker UI displays a notification when a new version of the Docker Desktop is published. Each time you wish to upgrade your Docker Desktop for Linux app, you must download the latest package and run:

sudo apt install ./docker-desktop-<version>-<arch>.debCode language: HTML, XML (xml)

Conclusion

This tutorial demonstrated installing Docker Desktop for Linux on an Ubuntu 22.04 LTS system. Now, you can get started pulling images and running containers.

For more information about using Docker, visit the Docker documentation page or our excellent beginners’ guide, “What is a Docker Container: An Introductory Guide for Beginners.”

Bobby Borisov

Bobby Borisov

Bobby, an editor-in-chief at Linuxiac, is a Linux professional with over 20 years of experience. With a strong focus on Linux and open-source software, he has worked as a Senior Linux System Administrator, Software Developer, and DevOps Engineer for small and large multinational companies.

Think You're an Ubuntu Expert? Let's Find Out!

Put your knowledge to the test in our lightning-fast Ubuntu quiz!
Ten questions to challenge yourself to see if you're a Linux legend or just a penguin in the making.

1 / 10

Ubuntu is an ancient African word that means:

2 / 10

Who is the Ubuntu's founder?

3 / 10

What year was the first official Ubuntu release?

4 / 10

What does the Ubuntu logo symbolize?

5 / 10

What package format does Ubuntu use for installing software?

6 / 10

When are Ubuntu's LTS versions released?

7 / 10

What is Unity?

8 / 10

What are Ubuntu versions named after?

9 / 10

What's Ubuntu Core?

10 / 10

Which Ubuntu version is Snap introduced?

The average score is 68%