Hi. I am following a Debezium tutorial and I am trying to use Rancher-Desktop. In the tutorial, it says to run the following, but I get:
PS C:\WINDOWS\system32> wsl.exe --distribution rancher-desktop docker run -it --rm --name zookeeper -p 2181:2181 -p 2888:2888 -p 3888:3888 quay.io/debezium/zookeeper:3.0
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
I’m not sure how to resolve this from:
PS C:\WINDOWS\system32> dockerd --register-service --service-name docker --group docker-users --config-file C:\docker\config\windows-daemon.json
The specified service already exists.
PS C:\WINDOWS\system32> wsl.exe -l -v
NAME STATE VERSION
* openSUSE-Tumbleweed Stopped 2
rancher-desktop-data Stopped 2
rancher-desktop Running 2
PS C:\WINDOWS\system32> wsl.exe docker info
Client:
Version: 27.2.1-rd
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.17.1
Path: /mnt/c/Program Files/Rancher Desktop/resources/resources/linux/docker-cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.29.5
Path: /mnt/c/Program Files/Rancher Desktop/resources/resources/linux/docker-cli-plugins/docker-compose
Server:
ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
errors pretty printing info
PS C:\WINDOWS\system32> docker context ls
NAME DESCRIPTION DOCKER ENDPOINT ERROR
default * Current DOCKER_HOST based configuration npipe:////./pipe/docker_engine
desktop-linux Docker Desktop npipe:////./pipe/dockerDesktopLinuxEngine
PS C:\WINDOWS\system32> wsl.exe docker context ls
NAME DESCRIPTION DOCKER ENDPOINT ERROR
default * Current DOCKER_HOST based configuration unix:///var/run/docker.sock
PS C:\WINDOWS\system32> docker context show
default
PS C:\WINDOWS\system32> docker context inspect --format '{{ .Endpoints.docker.Host }}'
npipe:////./pipe/docker_engine
PS C:\WINDOWS\system32> wsl.exe docker context inspect --format '{{ .Endpoints.docker.Host }}'
unix:///var/run/docker.sock
PS C:\WINDOWS\system32> wsl.exe pidof dockerd
nothing
PS C:\WINDOWS\system32> wsl.exe dockerd --register-service --service-name docker --group docker-users --config-file C:\docker\config\windows-daemon.json
/bin/bash: line 1: dockerd: command not found
PS C:\WINDOWS\system32> wsl.exe snap list docker
/bin/bash: line 1: snap: command not found
PS C:\WINDOWS\system32> wsl.exe dnf list --installed 'docker*'
/bin/bash: line 1: dnf: command not found
PS C:\WINDOWS\system32> wsl.exe yum list --installed 'docker*'
/bin/bash: line 1: yum: command not found
PS C:\WINDOWS\system32> wsl.exe apt list --installed 'docker*'
/bin/bash: line 1: apt: command not found
PS C:\WINDOWS\system32> wsl.exe snap services
/bin/bash: line 1: snap: command not found
PS C:\WINDOWS\system32> wsl.exe file /var/run/docker.sock
/bin/bash: line 1: file: command not found
PS C:\WINDOWS\system32> wsl.exe ps auxf
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 2616 1756 hvc0 Sl+ 10:02 0:00 /init
root 5 0.0 0.0 2616 4 hvc0 Sl+ 10:02 0:00 plan9 --control-socket 5 --log-level 4 --server-fd 6 --pipe-fd 8 --log-truncate
root 9 0.0 0.0 2616 120 ? Ss 10:02 0:00 /init
root 10 0.0 0.0 2616 120 ? S 10:02 0:00 \_ /init
catchar+ 11 0.0 0.0 8320 3816 pts/0 Rs+ 10:02 0:00 \_ ps auxf
PS C:\WINDOWS\system32> Get-Process | Select-String docker
System.Diagnostics.Process (dockerd)
PS C:\WINDOWS\system32> wsl.exe systemctl --user status docker
Failed to connect to user scope bus via local transport: No such file or directory