desktop-linux icon indicating copy to clipboard operation
desktop-linux copied to clipboard

docker-desktop stuck on "Docker Desktop stopped" ubuntu

Open bro-aero opened this issue 2 years ago • 19 comments

  • [x] I have tried with the latest version of Docker Desktop
  • [ ] I have tried disabling enabled experimental features
  • [x] I have uploaded Diagnostics
  • Diagnostics ID: 595b6919-652b-40ce-9c12-d496e5b896a7/20220724231742

Expected behavior

To be honest, as I'm new to docker desktop I don't know what to expect specifically, but I'm assuming I should have options to start new containers etc.

Actual behavior

docker-desktop displays the message "Docker Desktop stopped" and it seems like most options/actions are unusable. image

Information

This machine is running Ubuntu 20.04.4 LTS and it's not a VM Note: I am willing to try any suggestions that may help, however I have already tried:

  • adding my user to kvm group
  • adding my user to docker group
  • running docker-desktop with docker-engine enabled/running
  • running docker-desktop with docker-engine disabled
  • restarting my machine
  • resetting docker-desktop to defaults
  • clearing docker-desktop cache
  • reinstalling docker-desktop

Also note: when installing docker-desktop I have been downloading docker-desktop-4.10.1-amd64.deb and installing using the ubuntu software manager.

I'm able to reproduce this by opening docker-desktop, however I'm assuming this could be caused by some conflict with something that is specific to my machine, so as for re-creating an environment, I'm not sure.

Thanks in advance to anybody that has suggestions or can help.

Let me know if I have missed any details or info, happy to add more.

bro-aero avatar Jul 24 '22 23:07 bro-aero

Hi @bro-aero. The logs in the diagnostics bundle you uploaded point to a kvm setup issue:

Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: failed to initialize KVM: No such file or directory

Docker Desktop is running a VM and for that it needs kvm virtualization support. Please follow the instructions in the install docs to enable the module and set up device access.

aiordache avatar Jul 25 '22 09:07 aiordache

Right, yes makes sense, thanks for pointing that out.

I thought I had followed that step during installation, but looking at it now it appears my CPU does not support KVM.

Any chance I can use qemu somehow rather than kvm?

bro-aero avatar Jul 28 '22 00:07 bro-aero

@bro-aero - sorry, we don't have an option to run without kvm. And adding it would have a massive performance penalty. Did you make sure you have enabled virtualisation in the BIOS (https://bce.berkeley.edu/enabling-virtualization-in-your-pc-bios.html)?

p1-0tr avatar Aug 04 '22 09:08 p1-0tr

Hi, @bro-aero How are you doing? I got the same issue, and I didn't fix it yet. According to @aiordache's advice, I checked the kvm setup, and I found a problem. image image I logged out, and then logged in, and I saw my user didn't have permssion. image

inapeace0 avatar Sep 05 '22 08:09 inapeace0

Not any solution? I still have same problem,please help me guys :(

Marhamat92 avatar Sep 06 '22 08:09 Marhamat92

Hi, @bro-aero How are you doing? I got the same issue, and I didn't fix it yet. According to @aiordache's advice, I checked the kvm setup, and I found a problem. image image I logged out, and then logged in, and I saw my user didn't have permssion. image

This is to add you to the kvm group, just use groups to check


I checked kvm and everything is fine, but I still can't start docker desktop.

And I was able to start it normally at first, the problem appeared after a reboot of the computer, when it was solved after restarting the application, but now I can't fix it no matter how much I restart

Tarrowren avatar Sep 07 '22 09:09 Tarrowren

Bro I checked my pc because of this and working on laptop now ,it is working now ..maybe ı didnt do correct setup on first pc thats why...here installed it with steps that docker shows on documents for ubuntu

Marhamat92 avatar Sep 07 '22 09:09 Marhamat92

Hi, I already fixed my issue on my vm ubuntu through this post. I'd appreciate if it's a bit of help for you to start docker. https://stackoverflow.com/questions/72281976/docker-is-running-docker-desktop-says-docker-desktop-stopped

inapeace0 avatar Sep 08 '22 01:09 inapeace0

This command works for me and also chek for vm enabled in you bios

systemctl --user start docker-desktop

source : https://docs.docker.com/desktop/install/ubuntu/#:~:text=docker.cli.-,Launch%20Docker%20Desktop,-%F0%9F%94%97

BusinessOcean avatar Dec 07 '22 05:12 BusinessOcean

I had the same problem. Here is the solution, which worked for me:

  1. Enabled Intel VMX in BIOS (AMD virtualization if you have AMD CPU)
  2. Followed https://docs.docker.com/desktop/install/linux-install/#kvm-virtualization-support

pauljurczak avatar Dec 14 '22 03:12 pauljurczak

For Other Laptops, please check the Bios settings and set Hyper-V or Virtualization to Enabled while starting your OS and save and exit.

sujaykundu777 avatar Dec 15 '22 13:12 sujaykundu777

I had the same problem. Here is the solution, which worked for me:

1. Enabled Intel VMX in BIOS (AMD virtualization if you have AMD CPU)

2. Followed https://docs.docker.com/desktop/install/linux-install/#kvm-virtualization-support

Thank you very much. Problem solved!!

maliongan avatar Jan 23 '23 14:01 maliongan

I got a Docker Desktop stopped... message just after editing "Shared path" in its settings and clicking "Save and restart". Very annoying that a simple settings editing may break Docker Desktop. Still don't know how to fix it.


UPD:

To break Docker Desktop follow these steps:

"Settings" --> "Resources" --> "File sharing" --> add /opt/pysetup directory --> click "Save and restart"

simon-liebehenschel avatar Jan 29 '23 15:01 simon-liebehenschel

after set kvm group, i logout and login to take effect , and systemctl --user start docker-desktop.

dirtyluke avatar Feb 06 '23 08:02 dirtyluke

@AIGeneratedUsername

I got a Docker Desktop stopped... message just after editing "Shared path" in its settings and clicking "Save and restart". Very annoying that a simple settings editing may break Docker Desktop. Still don't know how to fix it.

I encountered the exact same problem, manually editing the config /home/$USER/.docker/desktop/settings.json helped.

  "filesharingDirectories": [
    " /snap/phpstorm/", <------ that was a problem. Removing the leading space helped.
    "/home"
  ],

it's definitely a bug, сreated the issue - https://github.com/docker/desktop-linux/issues/122

cheack avatar Feb 09 '23 07:02 cheack

@AIGeneratedUsername

I got a Docker Desktop stopped... message just after editing "Shared path" in its settings and clicking "Save and restart". Very annoying that a simple settings editing may break Docker Desktop. Still don't know how to fix it.

I encountered the exact same problem, manually editing the config /home/$USER/.docker/desktop/settings.json helped.

  "filesharingDirectories": [
    " /snap/phpstorm/", <------ that was a problem. Removing the leading space helped.
    "/home"
  ],

it's definitely a bug, сreated the issue - #122

Thanks for this ... I had a path to a drive that was no longer mounted (automatically added by a rust MongoDB package) -- removing it from settings.json allowed Docker Desktop to start

m1k439 avatar Mar 16 '23 23:03 m1k439

@m1k439 Yeah, same for me, added another issue - https://github.com/docker/desktop-linux/issues/132

cheack avatar Mar 17 '23 05:03 cheack

There hasn't been any activity on this issue for a long time. If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale comment. If not, this issue will be closed in 30 days.

Prevent issues from auto-closing with a /lifecycle frozen comment.

/lifecycle stale

docker-robot[bot] avatar Jun 23 '23 01:06 docker-robot[bot]

Issue solved on unbuntu 23.04 on running on intel, had to enable virtualization in BIOS as said above, thanks

ken-980 avatar Jun 28 '23 08:06 ken-980