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

Docker Desktop failed to start after adding a non-existent path in the File Sharing Settings

Open cheack opened this issue 2 years ago • 2 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: 4642e174-7abf-4972-9c7b-b0a59e52e1eb/20230209081950

Expected behavior

The path to be added is checked for existence before it is added. Or is simply ignored on startup.

Actual behavior

Docker Desktop stopped... message.

Information

  • Linux distro: Linux Mint
  • Distro version: 21.1 Vera
  • Docker Desktop Version: 4.17.0 (99724)

Steps to reproduce the behavior

  1. Open File Sharing Settings, manually type any non-existing path (for example /abc/app/123), hit Enter.
  2. Apply & Restart

To get Docker Desktop to start again, I had to manually remove the added path from the /home/$USER/.docker/desktop/settings.json config.

cheack avatar Mar 17 '23 05:03 cheack

Another case - https://github.com/docker/desktop-linux/issues/52#issuecomment-1472905581

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

cheack avatar Mar 17 '23 05:03 cheack

Hi, I am using Linux Mint 21 and Docker Desktop version 4.20. I am facing almost same issue. Whenever I add the path /media/nimblenitesh/D/my-project/docker in the settings and click 'apply and restart', it works fine. However, after restarting the system, it gets stuck at "Docker Engine is starting" and fails to load. To resolve this, I have to manually edit the settings.json file, remove the path, and then add it again to continue working. I faced the same issue with Docker Desktop version 4.19 as well. Is there any other solution to this problem?

NimbleNitesh avatar May 31 '23 20:05 NimbleNitesh