I'm running Docker Desktop for MacOS and I don't know how to stop the Docker service. It runs all the time using up the MacBook battery.
<img src="https://i.stack.imgur.com/buRf4.png" width="200" />On a simple search, there are docs showing how to stop the containers but not the docker service itself.
I might be missing something obvious, but is there a way to stop both Kubernetes and Docker service without having to kill the desktop app?
The docker desktop app starts a qemu vm, so the desktop app has no control over the PIDs. To oversome the "situation" do the following:
open the Terminal app
edit the file ~/.bash_profile
add the following lines
Quit the terminal app and open it again.
Type kdo
to kill all the dependend apps (hypervisor, docker daemon etc.)
You can open the Activy Monitor, select Docker and then use the Quit button.
Maybe you will need to use the Force Quit option.
I had been searching around for an answer to this too, as I noticed com.docker.hyperkit
was taking >3GB memory and a lot of CPU, when the desktop app wasn't even opened on Mac OS X Catalina, Docker Desktop 3.0.4
Just as I was about kill -9
, I noticed that quitting the docker app again actually did kill off every process except com.docker.vmnetd
for whatever reason.
So I guess the solution here was... reopen and re-quit? I also made sure, of course, there were no running containers. I removed an old image too, unsure if that was related to it finally being able to fully quit.