How to Install Docker Desktop on Ubuntu 24.04 LTS

Need Docker Desktop on Ubuntu 24.04 LTS? Our straightforward guide shows you how to install it quickly and without hassle.

Docker Desktop is a powerful platform that simplifies the process of building, sharing, and running containerized applications via a convenient GUI. At the same time, Ubuntu, known for its stability and reliability, is a favorite among developers.

Pairing both is perfect for building, testing, and deploying containerized applications in a consistent and isolated environment, simplifying collaboration and increasing efficiency.

Our practical, tried-and-tested guide will walk you through every step of installing Docker Desktop on Ubuntu 24.04 LTS, making it easy to start and deploy your containerized projects without wasting time in complicated setups.

System Requirements

To install Docker Desktop successfully on your Ubuntu 24.04 LTS system, it must match the following requirements:

  • 64-bit kernel and CPU support for virtualization.
  • At least 4 GB of RAM.
  • KVM virtualization support.
  • QEMU must be version 5.2 or newer.
  • A desktop environment with system tray support.

Additionally, it is important to understand that Docker Desktop runs a Virtual Machine that creates its own Docker context.

In other words, containers deployed on your Linux host before installing Docker Desktop will not be available in the app, so you’ll have to redeploy them through it to be able to manage them through Docker Desktop.

Step 1: Add Official Docker Repository

Iโ€™ll clarify immediately โ€“ to install Docker Desktop on Ubuntu 24.04, you essentially need to install a single DEB package. However, if you quickly download and try to install it without first adding a Docker repository to your system, youโ€™ll face an error due to missing dependencies.

Specifically, the message states, โ€œdocker-desktop : Depends: docker-ce-cli but it is not installable.โ€

Unmet dependencies error.
Unmet dependencies error.

In other words, Docker Desktop needs the โ€œdocker-ce-cliโ€ package installed on your Ubuntu 24.04 or available in its repositories. So, weโ€™ll first add the official Docker repositories to your system, where the package is available. This way, when we install Docker Desktop, all the necessary dependencies will be met.

Run the commands in the order shown below to add the Docker repository to your Noble Numbat system.

sudo apt install apt-transport-https ca-certificates curl gnupg
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu noble stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/nullCode language: Bash (bash)

Then, refresh the repository index. The command output will show that the Docker repo is ready for use. So when you install Docker Desktop in the next step, the required package dependencies will be downloaded from it, thus ensuring a seamless installation.

sudo apt updateCode language: Bash (bash)
Refreshing package base.
Refreshing package base.

Step 2: Download Docker Desktop

Now point your browser to this address and click the โ€œDEB packageโ€ button to download Ubuntu’s Docker Desktop installation package.

Download the Docker Desktop installation package for Ubuntu.
Download the Docker Desktop installation package for Ubuntu.

Step 3: Install Docker Desktop on Ubuntu 24.04 LTS

So, everything is ready. The last step is to install the DEB file we downloaded. To do this, use the command below, but remember to change the file path if you downloaded it to a different folder on your Ubuntu 24.04 system.

sudo apt install ./Downloads/docker-desktop-amd64.debCode language: Bash (bash)
Install Docker Desktop on Ubuntu 24.04 LTS (Noble Numbat).
Install Docker Desktop on Ubuntu 24.04 LTS (Noble Numbat).

Wait for the necessary packages to be downloaded and installed; the process will not take more than a minute.

Step 4: Run Docker Desktop

The installation is complete, but do not rush to run the application. If you do, you will be unpleasantly surprised by the following error message.

Docker Desktop startup error.
Docker Desktop startup error.

It occurs because of a change in how Ubuntu 24.04 LTS restricts unprivileged namespaces (more on that here). But there’s no room for worry because we give you a solution for that right away.

To solve the issue temporarily, you can run the following:

sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0Code language: Bash (bash)

The downside of this approach is that you need to execute it each time before you start Docker Desktop. So, we highly recommend opting for, as a permanent solution, to simply run the command below, then reboot your Ubuntu system.

echo 'kernel.apparmor_restrict_unprivileged_userns = 0' | sudo tee /etc/sysctl.d/20-apparmor-donotrestrict.confCode language: Bash (bash)

Now, use the application launcher and search for โ€œdocker.โ€ When the Docker Desktop icon appears, click to run it.

Run Docker Desktop
Run Docker Desktop

You will be greeted by the โ€œDocker Subscription Service Agreement.โ€ Click the โ€œAcceptโ€ button.

Docker Subscription Service Agreement
Docker Subscription Service Agreement

If you have Docker Desktop subscriptions, you can log in on the next screen. If not, just click the โ€œContinue without signing inโ€ link.

Choose to log in to your Docker Desktop subscription or continue without it.
Choose to log in to your Docker Desktop subscription or continue without it.

Weโ€™re almost set. Docker has a quick survey to learn more about its users. You can participate by answering it briefly or clicking the โ€œSkip surveyโ€ button.

Welcome Survey
Welcome Survey

And that’s all! Youโ€™ve successfully installed Docker Desktop on your Ubuntu 24.04 LTS (Noble Numbat) system, which rises before you in all its glory. Congratulations! Additionally, you can manage the application through the system tray icon.

Docker Desktop successfully installed, up & running on Ubuntu 24.04 LTS (Noble Numbat).
Docker Desktop successfully installed, up & running on Ubuntu 24.04 LTS (Noble Numbat).

So, what are you waiting for? With Docker Desktopโ€™s convenient graphical interface, youโ€™re all set up and ready to start containerizing your ideas quickly and easily.

Running containers using Docker Desktop on Ubuntu 24.04 LTS.
Running containers using Docker Desktop on Ubuntu 24.04 LTS.

Lastly, to have Docker Desktop automatically start when you log in, go to the Docker Desktop โ€œSettingsโ€ -> โ€œGeneralโ€ and mark the โ€œStart Docker Desktop when you log in to your computerโ€ checkbox. Then, confirm by pressing the โ€œApply & restartโ€ button.

Set Docker Desktop to automatically start when you log in.
Set Docker Desktop to automatically start when you log in.

Bottom Line

As you can see, with the proper instructions, installing Docker Desktop on Ubuntu 24.04 LTS is relatively straightforward. Whether setting up a development environment, running containers for testing, or deploying applications, you’re all set with a robust platform tailored for these tasks.

For more in-depth knowledge about using Docker, visit its documentation or navigate to the official Docker Desktop manuals.

Additionally, if you want to go with the full command-line approach, our guide on installing Docker on Ubuntu 24.04 LTS will greatly help you get started.

Thanks for using our guide! Feel free to share your thoughts in the comments section below.

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%