Server:
ERROR: Cannot connect to the Docker daemon at unix:///home/greg/.docker/desktop/docker.sock. Is the docker daemon running?
errors pretty printing info
Have a 64-bit version of either the latest LTS version (Ubuntu Jammy Jellyfish 22.04) or the current non-LTS version (Ubuntu Mantic Minotaur 23.10). Docker Desktop is supported on x86_64 (or amd64) architecture.
Ubuntu 24.04 is still beta and not mentioned among the supported operating systems. I still havenât installed Ubuntu 24.04 so I have no idea whether Docker Desktop should work on it or not.
When you start the GUI? Did you try to check system logs?
Doesnât just show âloadingâ but doesnât start at all?
Either way, without logs there is nothing I can say unfortunately. And I donât use DD for Linux enough to know what could go wrong. Have you tried Docker Desktop for Linux on supported Ubuntu versions as well?
Any luck here yet? I have the exact same problem. Ubuntu 24.04 Docker Desktop doesnât start. When clicking on the icon, no reaction. No Loading or errors or any reaction.
I had the same error with Docker Engine so the cause might not be the same, but Iâd previously set the service to depend on a network mount, which had seemingly been renamed during the upgrade. Try starting it from the terminal and see if it complains about a mount point not being found:
$ sudo service docker start
Failed to start docker.service: Unit media-share.mount not found.
If thatâs the case, you can run systemctl list-units --type=mount to get the updated name, then edit /etc/systemd/system/multi-user.target.wants/docker.service and edit the [Unit] block appropriately. Thereâs probably a way to reload changes but I did a reboot and docker came straight back up.
Thatâs what I donât think you can with Docker Desktop and even if you could, that is a virtual machine so you wouldnât see the logs of the daemon.
I see many of you have problems, but have any of you checked whether Docker Desktop is supported on Ubuntu 24.04 before you upgraded to it? See my previous reply
It doesnât mean they dropped it, but since the new LTS has many changes, they might have delayed a release that supports it. 24.04 is still pretty new, although they could have started to support it while it was beta. I donât know the reasons, but you can join the discussion on GitHub:
Docker desktop wonât work and it probably needs an update. But docker engine works but ONLY with sudo. So from what I have experienced docker ps will give you an error that canât connect to docker service but sudo docker ps works.
I think it has something to do with the new security features of Ubuntu 24.04 here https://ubuntu.com/blog/whats-new-in-security-for-ubuntu-24-04-lts. Itâs just sad that Docker didnât even try to fix this between the time of the beta release and the final release. They had 2 weeks time and nobody at Docker thought about testing it on 24.04?
Depends on the context. See docker context --help. If you have Docker DEsktop and Docker CE, you need to switch between contexts. If your user is not in the docker group, then indeed, you need to use sudo. When you use sudo, it will always use the default context since Docker Desktopâs context will not be available as root.
We donât know if they tried or not. The best that all of you can do is join the conversation in the issue on GitHub. And again, next time donât upgrade an OS when you donât know if all of the requirements are supported on the new one
But thanks for the link. I will read it later after work.
I have no Docker Desktop installed. Just the Docker engine. And yes I have added my user to the docker group and after adding my user, docker commands without sudo work. But when I restart it somehow gets removed again. I built my containers without sudo and for that session, I can could work with them(start, stop etc.) but only for that session. As soon as I restart, itâs only accessible with sudo privileges.
You wrote about Docker Desktop in your first post and I quoted the documentation where Ubuntu 24.04 is not mentioned. Then I quoted my post in which I quoted the documentation. The topic is in the Docker Desktop for Linux category, so we talk about Docker Desktop. Should it be supported or not, Ubuntu 24.04 is not mentioned in the documentation. Which is at least suspicious. But I noted that I have no idea whether the developers intended to support the latest release and it is a bug or they just forgot to update the documentation. So this part is not as plain as simple actually, but the fact that the version is not mentioned in the documentation is still a fact.
Docker CE is another story. That works differently, so it should be discussed in a different topic even if the root cause of both is systemd. One starts a virtual machine, and the other starts multiple components on the host directly. I know that the GUI sometimes show âDocker Engine is startingâ, but that means it is starting in the virtual machine which so the solution will not be the same. The topic title could be confusing when someone doesnât read the category in which the topic is in so Iâm going to change it to make it more obvious that here we are talking about the Desktop.
@sharifgh Then letâs continue this discussion in a new topic, because the installation guide of Docker on Ubuntu indeed includes Ubuntu 24.04, so that should work. Although even if Docker Desktop is not installed now, but it was, it is also possible that the context settings were not reset so you still need to switch context. If you open a new topic, I can give you some ideas. I canât install Docker Desktop on Ubuntu 24.04 now to help, but I can try to install Docker CE in a virtual machine later.
Thank you for sharing the link. Good to know that it was a question 8 days ago on Reddit, but it links to the same issue on GitHub I recommended to follow. I donât know if it is a coincidence that you share it minutes after I change the topic title to similar to the one on Reddit.
Good to see that there is a working solution! I would say you could make that setting persistent if you donât want to run it every time you reboot your machine, but write a note to yourself somewhere to remember you did it and check the documentation from time to time. If the same solution is added to the installation instruction, you can keep it. If a new Docker Desktop release can solve it automatically, remove the setting from the file and let Docker Desktop solve it for you.
By the way I tested Docker Engine without the Desktop today and worked without any issue on Ubuntu 24.04, so it was indeed a Docker Desktop issue.
I experimented it. it doesnât work on ubuntu 24.04, I am having this problem from the day first.
someone needs to fix the issue⊠please do something about thisâŠ
I am attaching the crash report in my system⊠you can debug using this.
Thank you, this tempory workaround works greatly for running docker desktop on ubuntu 24.04 LTS, even if it needs to be run after every reboot.
I recommend to run it manually, cause it is about disabling a new security features from Ubuntu. It doesnât sound great to disable it by default for everyting after each reboot just to run docker, which I think will fix that soon.
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
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
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.
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.
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: