I had the same issue on my Mac. It was working well, suddenly, one day it stops working. After searching a lot, I was able to run it again by the following method:
-
Go to finder and open
Applications > Utilities > Activity Monitor.app -
Find
DockerorDocker Desktop(it was in Not responding mode in my case) and Force Kill the app. -
Run the following command in Terminal:
sudo rm -rf ~/Library/Containers/com.docker.* -
Open the setting file in the terminal:
sudo nano ~/Library/Group\ Containers/group.com.docker/settings.json
then find "filesharingDirectories":
- Remove all entries inside this key and leave it as
"filesharingDirectories": [],save and close the file. - Finally go to the Application folder, find
Dockerand run it (wait sometime, it takes a minute or so to run) - It will run and work like a charm!