Cannot get Docker Desktop to run on Ubuntu 24.04

I am running Ubuntu 24 with Docker-desktop-4.30.0-amd64.deb

The workaround gets it to start but I don’t see any of the containers I see in docker ps -a

for example

partyk1d24@igoy:~$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0d37886050e0 e784f4560448 “/docker-entrypoint.…” 6 days ago Up 14 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp nginx
458c5c5ce77d abeda236c4f0 “/init” 6 days ago Up 14 minutes 0.0.0.0:8123->8123/tcp, :::8123->8123/tcp homeassistant
77ff82956627 3d9dd5a7695e “/opt/docker-entrypo…” 6 days ago Up 14 minutes (healthy) 0.0.0.0:1883->1883/tcp, :::1883->1883/tcp, 0.0.0.0:8000->8000/tcp, :::8000->8000/tcp, 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp hivemq

But none in docker desktop

Today I decided to upgrade Ubuntu 24.04 (2024-06-14), and I had a problem with the desktop. Your contribution helped me, thank you.

Thank you it woks for me :blush:

Seems to start, but I can not sign in! Anyone with the same problem and/or solution?

Cheers,
Leendert
The Netherlands

And can you sign in in docker-desktop?
I can’t.

Cheers,
Leendert
The Netherlands

I was fighting the same problem for about 2 hours until I found the solution here: Install Docker Desktop on Ubuntu | Docker Docs

inside the pre-requisites NOTE, says you need to run the following command at least once:
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0

Best

1 Like

I used these commands after installing:

$ sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
$ systemctl --user restart docker-desktop
2 Likes

read this to resolve issue.

I saw you shared it on GitHub too. Aren’t the previous two solutions better?

These suggest creating a new apparmor profile instead of disabling the unprivileged usernamespaces.

agree with your point, but I found it useful for me.

Are there palns. Roadmap to official suport Docker, Docker desktop for Ubuntu 24.04 LTS.

The referenced workarounds all shut of AppAmmor. I not going to do that for isolation reasons.

Please, check the links I shared in my previous post until the the latest LTS ubuntu is supported.

Thank You
I messed that post

Have a Nice day

Here is the official response as well

https://github.com/docker/desktop-linux/issues/209#issuecomment-2410820399

Thank you for your interest and patience. We want to let you know that we’re actively working on the Linux Ubuntu 24.04, and it’s already in the testing phase. It’s coming soon, though we don’t have a confirmed release date just yet.

We’ll keep you updated as progress continues!

Roadmap item: docker/roadmap#655 (comment)

Awesome, thanks for the update!

The official documentation requires : “Have a 64-bit version of either the LTS version Ubuntu Jammy Jellyfish 22.04, or the current non-LTS version”. The latest non LTS version is 24.10 but I encounter the exact same symptoms (docker desktop hanging and nothing happens) but the proposed workarounds work. So I guess the problem also occurs on 24.10.

What is the the current non-LTS version mentioned here ? This is confusing. I cannot find non LTS latest version of 22.04 and after.

Since the “current non-LTS” version is newer then 24.04 LTS, the current non-LTS version is not supported either. The documentation was just not changed to remove the non-LTS version part and the note below that does not meniton it either. I agree it could be confusing.

There is no “non-LTS version of 22.04”. 22.10 would be the next non-LTS version, but It is not supported by Ubuntu either. I’m not 100% sure, but I think the change that made Ubuntu incompatible with Docker Desktop was introduced in Ubuntu 23.10. Previous versions could work but I would not upgrade to a non-LTS version especially which is nont supported even by the maintainers of Ubuntu.

sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0

is required for 24.04

Just in case you didn’t notice, Docker Desktop 4.35 now supports Ubuntu 24.04

https://docs.docker.com/desktop/install/linux/ubuntu/#prerequisites

  • Have an x86-64 system with Ubuntu 22.04, 24.04, or the latest non-LTS version.

Note that as of October 29, the docker desktop download link provided on the installation page still points to the old version of docker desktop, and will fail to install on 24.04. Instead of using the provided link, head over to the release notes page and download using the provided link:

2 Likes