Upgrading to Ubuntu 24.04 LTS may cause problems with Docker Desktop. Follow these steps to resolve them quickly.
Prerequisites
- Internet connection.
- Docker CLI installed (Guide here).
- GPG key setup (optional for Docker login).
Step 1: Verify Docker CLI
- Run the following command in your terminal to verify Docker is working:
sudo docker run hello-world
- If successful, proceed to install Docker Desktop.
Step 2: Install Docker Desktop
- Download Docker Desktop from here.
- Run these commands to install:
sudo apt-get update
sudo apt-get install ./docker-desktop-<arch>.deb
(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
Then restart your system:
sudo reboot
Step 4: Set Up GPG Key (If Login Issues)
- Install password manager:
sudo apt-get install pass
- Generate a GPG key:
gpg --generate-key
- Initialize pass:
pass init "your_email@example.com"
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. ✌🏻
Top comments (0)