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

Billboard image

Monitoring as code

With Checkly, you can use Playwright tests and Javascript to monitor end-to-end scenarios in your NextJS, Astro, Remix, or other application.

Get started now!

Top comments (0)

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay