Docker Community Forums

Share and learn in the Docker community.

Cant close docker on Mac

I tried to closed docker on Mac and icon stuck on icon bar

Tried to kill it via the Terminal or restaring?

Yes. I did do that. Terminal said “arguments must be process or job IDs”

try “dockerd”

else you need to run “ps -ef | grep -i docker” to get the pid, and then: kill -9 PID

where is the pid? I got
0 127 1 0 13Dec21 ?? 0:00.18 /Library/PrivilegedHelperTools/com.docker.vmnetd
501 66859 1 0 Wed07pm ?? 0:07.53 /Applications/Docker.app/Contents/MacOS/Docker
501 66954 66859 0 Wed07pm ?? 0:01.72 /Applications/Docker.app/Contents/MacOS/com.docker.dev-envs -watchdog
501 93545 93535 0 4:31pm ttys000 0:00.00 grep -i docker

kill requires a process ID.You could use pkill to kill a process by its name.

pkill docker

PID is the second column. You can see the headers without grep.

Although I feel I have to ask: How did you try to close Docker Desktop? Closing the window will not terminate the app. Have you tried “Quit Docker Desktop” from the menu?

Thank You! for 10 days that was stuck!