DEV Community

Cover image for Docker Desktop is not working on Ubuntu 24.04 LTS ?
Chandrashekhar Mehta
Chandrashekhar Mehta

Posted on

18

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. ✌🏻

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay