https://rancher.com/ logo
Title
r

rich-musician-88417

09/01/2022, 12:55 PM
Hi. I'm trying to access to containerd (or docker/moby)-API via TCP from the windows command line (or via the gradle-docker-plugin from our build files). But the connection to tcp://localhost:2375 is refused. If tried to change the sockets/hosts via /etc/docker/daemon.json but then i run into https://github.com/rancher-sandbox/rancher-desktop/discussions/2304. Is there any way to achieve remote access to containerd/docker with Rancher-Desktop, ideally without TLS at least for local connections?
h

handsome-jewelry-53515

09/01/2022, 3:26 PM
For Rancher Desktop on Windows, the docker daemon is set up as a Windows named pipe:
npipe:////./pipe/docker_engine
which would only allow for local connections.
I'll have to look through the code to see where it's configured.
f

fast-garage-66093

09/01/2022, 4:57 PM
I don't think this is currently possible, and created an enhancement request from the discussion item: https://github.com/rancher-sandbox/rancher-desktop/issues/2851
👍 1
This will only cover the moby/dockerd use-case; using the containerd API without access to the filesystem where the images are stored typically doesn't work (that's the reason
nerdctl
has to run inside the VM and cannot run on the host via a socket/named pipe).
r

rich-musician-88417

09/01/2022, 5:18 PM
At least for my use-case, moby/dockerd would be fine. Until then i've got to stay with docker-desktop or run docker-cli in a custom build distribution as the gradle-plugin used to build (and test) containers does not work with named pipes. Thank you for the quick replies!