DebianDebian Based

How To Install Docker Desktop on Debian 12

Install Docker Desktop on Debian 12

In this tutorial, we will show you how to install Docker Desktop on Debian 12. Docker has revolutionized the way applications are developed, packaged, and deployed. By leveraging containerization technology, Docker allows developers to create portable, self-contained environments that can run consistently across different systems. Docker Desktop is a user-friendly application that simplifies the management of Docker containers, making it an essential tool for developers working with Debian 12.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the Docker Desktop on Debian 12 (Bookworm).

Prerequisites

Before proceeding with the installation, make sure your Debian 12 system meets the following requirements:

  • A server running one of the following operating systems: Debian 12 (Bookworm).
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • SSH access to the server (or just open Terminal if you’re on a desktop).
  • 64-bit kernel and CPU support for virtualization.
  • KVM virtualization support
  • Recommended to have at least 4 GB of RAM and a dual-core processor.
  • QEMU version 5.2 or newer.
  • Gnome, KDE, or MATE desktop environment.
  • An active internet connection. You’ll need an internet connection to download the necessary packages and dependencies.
  • A user account with sudo privileges to execute administrative commands.

Install Docker Desktop on Debian 12

Step 1. Update Your System Package.

Before installing any package, it’s a good practice to update the APT package index to ensure that you have access to the latest available versions. Open a terminal and run the following command:

sudo apt update
sudo apt upgrade

These commands will update the package lists and upgrade any outdated packages to their latest versions. Once your system is updated, you’re ready to proceed with the installation of Audacity.

Step 2. Installing Docker Desktop.

To ensure the authenticity of the Docker packages, start by adding Docker’s official GPG key to your system. Open a terminal and execute the following commands:

curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker.gpg

This command downloads the GPG key and saves it to the /usr/share/keyrings/docker.gpg file.

Next, add the official Docker repository to your system’s package sources. This will allow you to install and receive updates for Docker Desktop directly from the Docker repository. Run the following command:

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

With the Docker repository added, update your system’s package lists to include the newly added packages:

sudo apt update

Now you are ready to install Docker Desktop on your Debian 12 system. Execute the following command:

sudo apt install docker-desktop

Step 3. Launch Docker Desktop

Once the installation is complete, you can launch Docker Desktop from your desktop environment’s application menu. Search for “Docker Desktop” and click on the icon to start the application.

Alternatively, you can launch Docker Desktop from the command line using the following command:

systemctl --user start docker-desktop

Install Docker Desktop on Debian 12

To verify that Docker Desktop is installed correctly and functioning properly, open a terminal and run the following command:

docker run hello-world

This command will download a small test image and run it in a container. If the installation is successful, you should see a message confirming that Docker is working correctly.

Congratulations! You have successfully installed Docker Desktop. Thanks for using this tutorial to install the latest version of Docker Desktop on Debian 12 Bookworm. For additional help or useful information, we recommend you check the official Docker website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!

r00t

r00t is an experienced Linux enthusiast and technical writer with a passion for open-source software. With years of hands-on experience in various Linux distributions, r00t has developed a deep understanding of the Linux ecosystem and its powerful tools. He holds certifications in SCE and has contributed to several open-source projects. r00t is dedicated to sharing her knowledge and expertise through well-researched and informative articles, helping others navigate the world of Linux with confidence.
Back to top button