Docker desktop not working on Ubuntu 24.04

sharifgh
Fri, 26 Apr 2024 09:16:58 +0000
Docker Desktop

Hi,

I had Ubuntu 22 and never had problems with Docker or Docker desktop. Upgraded to 24.04 yesterday and now it just doesn’t want to work anymore.

I uninstalled and installed several times but nothing seems to work.

When I run sudo docker run hello-world I get the right output.

When I run 'docker run hello-world` it just hangs.

Then I adjusted the permissions for my user according to here: https://docs.docker.com/engine/install/linux-postinstall/ and then I could run docker run hello-world and I would see success.

But when I run /opt/docker-desktop/bin/com.docker.diagnose check I get a lot of errors:

[PASS] DD0039: are KVM user permissions configured?
[PASS] DD0018: does the host support virtualization?
[FAIL] DD0001: is the application running? Docker is not running
[FAIL] DD0017: can a VM be started? vm has not started: failed to open init.log: open /home/xxx/.docker/desktop/log/vm/init.log: no such file or directory
[FAIL] DD0016: is the LinuxKit VM running? prereq failed: is the application running?
[FAIL] DD0004: is the Docker engine running? prereq failed: is the LinuxKit VM running?
[PASS] DD0015: are the binary symlinks installed?
[FAIL] DD0031: does the Docker API work? prereq failed: is the Docker engine running?
[PASS] DD0013: is the $PATH ok?
[FAIL] DD0034: is Context set to a Docker Desktop context? CLI context is set to docker-ce engine
[FAIL] DD0003: is the Docker CLI working? prereq failed: is the Docker engine running?
[FAIL] DD0038: is the connection to Docker working? prereq failed: is the Docker engine running?
[FAIL] DD0014: are the backend processes running? prereq failed: is the LinuxKit VM running?
[FAIL] DD0007: is the backend responding? prereq failed: are the backend processes running?
[FAIL] DD0009: is the vpnkit API responding? prereq failed: are the backend processes running?
[FAIL] DD0010: is the Docker API proxy responding? prereq failed: are the backend processes running?
[FAIL] DD0030: is the image access management authorized? prereq failed: is the Docker engine running?
[PASS] DD0037: is the virtiofs setup correct?
[WARN] DD0036: is the credentials store configured correctly? Error: password store is empty. Try "pass init".

[PASS] DD0033: does the host have Internet access?
[PASS] DD0039: are KVM user permissions configured?
[PASS] DD0018: does the host support virtualization?
[WARN] DD0001: is the application running? Docker is not running
[WARN] DD0017: can a VM be started? vm has not started: failed to open init.log: open /home/sharif/.docker/desktop/log/vm/init.log: no such file or directory
[WARN] DD0016: is the LinuxKit VM running? prereq failed: is the application running?
[WARN] DD0004: is the Docker engine running? prereq failed: is the LinuxKit VM running?
[PASS] DD0015: are the binary symlinks installed?
[WARN] DD0031: does the Docker API work? prereq failed: is the Docker engine running?
[WARN] DD0032: do Docker networks overlap with host IPs? prereq failed: does the Docker API work?

now I also tried to open Docker desktop by clicking on the app icon in the app menu and nothing happens.

Also good to know is that as soon as I click the app icon to open Docker desktop, somehow the permissions of my user are reset again and I can’t run docker run hello-world again.

could somebody help please?

8 posts - 5 participants