https://rancher.com/ logo
Title
g

gray-byte-86907

05/10/2023, 9:46 AM
Hello, I had docker desktop installed and I have uninstalled it. After that, I installed rancher desktop v1.81 on windows 10 and it works fine when I use containerd, but, when I use dockerd, any docker command I use return the following error message error during connect: this error may indicate that the docker daemon is not running: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/images/json": open //./pipe/docker_engine: The system cannot find the file specified. I tried to uninstall rancher desktop and reinstall it but every time it returns same error message any help will be appreciated.
w

wide-mechanic-33041

05/10/2023, 11:14 AM
you may wnat to look at the results of
docker context ls
as it might be pointing at the wrong endpoint
g

gray-byte-86907

05/10/2023, 11:54 AM
image.png
seems normal for me
I installed docker engine manually from https://docs.docker.com/engine/install/binaries/
but now I have the following error error during connect: this error may indicate that the docker daemon is not running: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/images/json": open //./pipe/docker_engine: Access is denied.
w

wide-mechanic-33041

05/10/2023, 11:56 AM
why did you need an additional dockerd? RD comes with moby?
g

gray-byte-86907

05/10/2023, 11:58 AM
dockerd is not installed with RD I am not sure why
w

wide-mechanic-33041

05/10/2023, 11:58 AM
it is when you select the moby container runtime
g

gray-byte-86907

05/10/2023, 12:00 PM
I selected moby container in RD but dockerd is not installed
w

wide-mechanic-33041

05/10/2023, 12:00 PM
do you mean docker cli in the host os? there is no install its included in their distro
do you get a hit with “where docker”
in cmd?
g

gray-byte-86907

05/10/2023, 12:13 PM
C:\Users\aabosamra>where docker C:\Program Files\Rancher Desktop\resources\resources\win32\bin\docker.exe C:\Program Files\Rancher Desktop\resources\resources\linux\bin\docker
w

wide-mechanic-33041

05/10/2023, 12:13 PM
cool and if you run docker info what comes up
and nothing is showing in the UI Diagnostics panel?
g

gray-byte-86907

05/10/2023, 12:17 PM
C:\Users\username>docker info Client: Context: default Debug Mode: false Plugins: buildx: Docker Buildx (Docker Inc.) Version: v0.10.4 Path: C:\Users\username\.docker\cli-plugins\docker-buildx.exe compose: Docker Compose (Docker Inc.) Version: v2.16.0 Path: C:\Users\username\.docker\cli-plugins\docker-compose.exe Server: ERROR: error during connect: this error may indicate that the docker daemon is not running: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/info": open //./pipe/docker_engine: The system cannot find the file specified. errors pretty printing info
w

wide-mechanic-33041

05/10/2023, 12:19 PM
so bits of old docker desktop hanging around unless you installed the client tools in your host as part of your engine install
and troubleshooting in the UI looking good? Rancher icon showing blue?
g

gray-byte-86907

05/10/2023, 12:21 PM
image.png
w

wide-mechanic-33041

05/10/2023, 12:22 PM
The diagnostics pane saying everything a’ok?
g

gray-byte-86907

05/10/2023, 12:22 PM
image.png
👍 1
image.png
w

wide-mechanic-33041

05/10/2023, 12:23 PM
hmmm not sure. things seem good assuming your container engine is set to dockerd
seems like kubernetes might be having some startup issues though
g

gray-byte-86907

05/10/2023, 12:23 PM
do I need to manually install dockerd on wsl ?
w

wide-mechanic-33041

05/10/2023, 12:23 PM
nope
click off dockerd in the prefs and any docker cli in your host should be able to interact with it after rancher restarts
g

gray-byte-86907

05/10/2023, 12:25 PM
I need to use dockerd and not nerdctl
w

wide-mechanic-33041

05/10/2023, 12:25 PM
yup?
so dockerd is the backend
docker is the client like nerdctl
g

gray-byte-86907

05/10/2023, 12:25 PM
I am not sure how to click off dockerd
w

wide-mechanic-33041

05/10/2023, 12:26 PM
most commands in nerdctl/containerd are the same so you can always alias
that was what i asked at the start?
in preferences did you select dockerd as your container engine?
g

gray-byte-86907

05/10/2023, 12:27 PM
yes
w

wide-mechanic-33041

05/10/2023, 12:28 PM
than it should be listening on that pipe, but seemingly it is not
g

gray-byte-86907

05/10/2023, 12:28 PM
I need to connect to dockerd using sockets from java
how to make sure that dockerd is listening on that pipe
w

wide-mechanic-33041

05/10/2023, 12:29 PM
did you look at the docker.log in the Log section of Troubleshooting?
g

gray-byte-86907

05/10/2023, 12:32 PM
time="2023-05-10T12:20:33Z" level=warning msg="containerd config version
1
has been deprecated and will be removed in containerd v2.0, please switch to version
2
, see https://github.com/containerd/containerd/blob/main/docs/PLUGINS.md#version-header"
I will send the log file
w

wide-mechanic-33041

05/10/2023, 12:32 PM
i ahve the same, but you are using dockerd runtime anyways
and a “nerdctl info” is not returning anything right (other than an error)
g

gray-byte-86907

05/10/2023, 12:34 PM
nerdctl info FATA[0000] cannot access containerd socket "/run/k3s/containerd/containerd.sock" (hint: try running with
--address /var/run/docker/containerd/containerd.sock
to connect to Docker-managed containerd): no such file or directory
w

wide-mechanic-33041

05/10/2023, 12:34 PM
cool so both are unresponsive
g

gray-byte-86907

05/10/2023, 12:34 PM
docker.log
w

wide-mechanic-33041

05/10/2023, 12:37 PM
it’s listening. time=“2023-05-10T12:25:07.151548706Z” level=info msg=“Daemon has completed initialization” time=“2023-05-10T12:25:07.201936659Z” level=info msg=“API listen on /mnt/wsl/rancher-desktop/run/docker.sock” time=“2023-05-10T12:25:07.213601333Z” level=info msg=“API listen on /var/run/docker.sock”
do you have a DOCKER_HOST env var that might be overriding the context?
g

gray-byte-86907

05/10/2023, 12:40 PM
echo %DOCKER_HOST% %DOCKER_HOST%
👍 1
w

wide-mechanic-33041

05/10/2023, 12:41 PM
has me stumped, maybe the rancher team has more ideas. only thing I could think of is security software blocking that pipe connection
may want to chime in on that issue as it sounds similar. per the log dockerd seems to be up, but docker cli can’t connect to it over the pipe for a TBD reason
you may want to try https://github.com/rancher-sandbox/rancher-desktop/issues/1580 as that shouldn’t be needed, but if it fixes your situation it may help to determine root cause
m

magnificent-napkin-96586

05/10/2023, 10:04 PM
there are similarities for sure between the errors posted here and the two issues that are listed beforehand. per this comment (https://github.com/rancher-sandbox/rancher-desktop/issues/4412#issuecomment-1533550262), can you provide the output of various
docker
commands with dockerd/moby as the selected engine?
g

gray-byte-86907

05/14/2023, 6:22 AM
docker images error during connect: this error may indicate that the docker daemon is not running: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/images/json": open //./pipe/docker_engine: The system cannot find the file specified. docker pull hello-world Using default tag: latest error during connect: this error may indicate that the docker daemon is not running: Post "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/images/create?fromImage=hello-world&tag=latest": open //./pipe/docker_engine: The system cannot find the file specified. docker run hello-world docker: error during connect: this error may indicate that the docker daemon is not running: Post "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/create": open //./pipe/docker_engine: The system cannot find the file specified. See 'docker run --help'. docker version Client: Version: 23.0.1-rd API version: 1.42 Go version: go1.19.5 Git commit: 393499b Built: Fri Feb 10 16:56:32 2023 OS/Arch: windows/amd64 Context: default error during connect: this error may indicate that the docker daemon is not running: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/version": open //./pipe/docker_engine: The system cannot find the file specified. docker info Client: Context: default Debug Mode: false Plugins: buildx: Docker Buildx (Docker Inc.) Version: v0.10.4 Path: C:\Users\${username}\.docker\cli-plugins\docker-buildx.exe compose: Docker Compose (Docker Inc.) Version: v2.16.0 Path: C:\Users\${username}\.docker\cli-plugins\docker-compose.exe Server: ERROR: error during connect: this error may indicate that the docker daemon is not running: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/info": open //./pipe/docker_engine: The system cannot find the file specified. errors pretty printing info docker ps error during connect: this error may indicate that the docker daemon is not running: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/json": open //./pipe/docker_engine: The system cannot find the file specified.
r

rapid-eye-50641

05/16/2023, 9:24 PM
@gray-byte-86907, Do you still see issues with
dockerd
? If yes, Can you please try below steps? • Run the command
rdctl factory-reset
• Uninstall Rancher Desktop from
Programs & Features
• Ensure you don't have Docker Desktop running in the background • Install Rancher Desktop. You should see a first run dialog where you can select the container engine. Please select
dockerd(moby
as the container engine. • Wait till the App is up, and try running docker commands. If the issue still persists then Can you please file a bug attaching logs from your machine. You can find logs at
%USERPROFILE%//AppData/Local/rancher-desktop/logs