rancher-sandbox / rancher-desktop

Container Management and Kubernetes on the Desktop
https://rancherdesktop.io
Apache License 2.0
5.97k stars 281 forks source link

`wsl-service docker` does not restart `dockerd` #3878

Open jandubois opened 1 year ago

jandubois commented 1 year ago

The wsl-service docker command restarts the supervise-daemon docker ... process, but the wsl-helper and daemond are not being restarted:

~ # ps -ef | grep dockerd ; wsl-service docker restart; sleep 30; ps -ef | grep dockerd
  933 root      0:03 /usr/bin/dockerd --host=unix:///mnt/wsl/rancher-desktop/run/docker.sock --host=unix:///var/run/docker.sock
 2350 root      0:00 grep dockerd
 * Stopping Rancher Desktop Docker Daemon ...                                                                                      [ ok ]
 * Starting Rancher Desktop Docker Daemon ...
 * supervise-daemon: Please increase the value of --respawn-period to more than 50 to avoid infinite respawning                    [ ok ]
  933 root      0:03 /usr/bin/dockerd --host=unix:///mnt/wsl/rancher-desktop/run/docker.sock --host=unix:///var/run/docker.sock
 2557 root      0:00 grep dockerd
jandubois commented 1 year ago

Looks like wsl-service docker stop does not stop either dockerd nor wsl-helper; both processes continue to run, and docker info shows that everything is still functional.

I tried pkill dockers; pkill wsl-helper; wsl-service docker start, which does start instances of the services, but the /var/run/docker.sock remains disconnected.