Docker Desktop is not working on Ubuntu 24.04 LTS ?

chandrashekhar

Chandrashekhar Mehta

Posted on September 29, 2024

Docker Desktop is not working on Ubuntu 24.04 LTS ?

Upgrading to Ubuntu 24.04 LTS may cause problems with Docker Desktop. Follow these steps to resolve them quickly.

Prerequisites

  1. Internet connection.
  2. Docker CLI installed (Guide here).
  3. GPG key setup (optional for Docker login).

Step 1: Verify Docker CLI

  1. Run the following command in your terminal to verify Docker is working:
   sudo docker run hello-world
Enter fullscreen mode Exit fullscreen mode
  1. If successful, proceed to install Docker Desktop.

Step 2: Install Docker Desktop

  1. Download Docker Desktop from here.
  2. Run these commands to install:
   sudo apt-get update
   sudo apt-get install ./docker-desktop-<arch>.deb
Enter fullscreen mode Exit fullscreen mode

(Replace <arch> with your system architecture, e.g., amd64.)

Step 3: Fix Permission Issues

If Docker Desktop doesn’t open, fix the permissions by running:

echo 'kernel.apparmor_restrict_unprivileged_userns = 0' | sudo tee /etc/sysctl.d/20-apparmor-donotrestrict.conf
Enter fullscreen mode Exit fullscreen mode

Then restart your system:

sudo reboot
Enter fullscreen mode Exit fullscreen mode

Step 4: Set Up GPG Key (If Login Issues)

  1. Install password manager:
   sudo apt-get install pass
Enter fullscreen mode Exit fullscreen mode
  1. Generate a GPG key:
   gpg --generate-key
Enter fullscreen mode Exit fullscreen mode
  1. Initialize pass:
   pass init "your_email@example.com"
Enter fullscreen mode Exit fullscreen mode

Step 5: Restart Docker Desktop

Log in with your Docker ID, and you’re all set! ✅


If you have questions, feel free to ask in the comments. ✌🏻

💖 💪 🙅 🚩
chandrashekhar
Chandrashekhar Mehta

Posted on September 29, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related