Stopping docker host on windows using task manager or command prompt

Considering that Docker is an orchestrator/glue for Linux kernel modules and tools, it can only be a first class citizen on Linux… Docker for Desktop always runs a Linux VM (or at least a wsl2 container) under the hood and has to wire the hosts docker cli commands to the Linux VM - which kind of feels half-as*ed in some areas.

If WSL2 is used, after closing DfD, it might be worth trying to execute wsl shutdown, which stops the “WSL2 VM” and with it all the WSL2 distributions that run in seperate containers. Though, you can also just terminate the distribution wsl -t ${distribution} that runs the docker engine.

I personaly rather run docker in a self managed vm then use Docker for Desktop. Its true that DfD is very convinient, but I am a strong believer that from development to production the plattform and version should be identical, which is not entirely true with DfD - except if someone is crazy enough to run his/her productive workload with DfD as well.

What I wrote is only true for running Linux containers and completly ignores Windows containers.