dockstation
dockstation copied to clipboard
socket hang up


Can you up a tunnel connection and connect to the remote docker via it tunnel?
ssh [email protected] -L127.0.0.1:3560:/var/run/docker.sock
docker -H tcp://127.0.0.1:3560 version
I'm having the same issue. When I try the tunnel manually, I get this error:
channel 2: open failed: administratively prohibited: open failed
I have not found a solution yet.
@bram1028 Hi. It looks like on your server was disabled ssh tunneling. Can you run some docker command on the remote server?
docker -H ssh://example.com ps
Looks like it's an issue with forwarding to a UNIX socket. I changed dockerd to listen on a TCP port and then setup an ssh tunnel for that and DockStation connects now.
I'm also having the same issue with docker 19.03.5 on a Raspberry.
Connecting from Dockstation 1.5.1 on Win10 or Arch does not work.
My user is in the docker group and docker -H ssh://xx@yy image ls
works.
Looks like it's an issue with forwarding to a UNIX socket. I changed dockerd to listen on a TCP port and then setup an ssh tunnel for that and DockStation connects now.
@bram1028 I'm interested in your approach, could you share that configuration? Thanks
I'm not using this anymore, so I don't have the exact configuration, but you need to tell dockerd to listen to a TCP port, like this:
# /etc/default/docker
DOCKER_OPTS="-H tcp://127.0.0.1:2375"
And then setup an SSH tunnel like normal:
ssh user@host -L 2375:127.0.0.1:2375
And then DockStation can connect to 127.0.0.1:2375
.
The docker docs show how to config the docker network, https://docs.docker.com/engine/install/linux-postinstall/#control-where-the-docker-daemon-listens-for-connections