Skip to content
Discussion options

You must be logged in to vote

lazydocker does not open an ssh connection per request
for an ssh:// docker host it spawns one tunnel and repoints DOCKER_HOST at a local socket

pkg/commands/ssh/ssh.go:152

cmd := exec.CommandContext(ctx, "ssh", "-L", localSocket+":/var/run/docker.sock", host, "-N")

pkg/commands/docker.go:110-116 does the same for a docker context whose endpoint is ssh:// (v0.24.0 and later — before that only the DOCKER_HOST env var triggered it)

so one touch should be enough
the reason it never starts is that this child ssh gets no stdin
Go leaves cmd.Stdin nil which is the null device so a PIN prompt has nowhere to go
after 8 seconds you get ssh tunneled socket never became available
pkg/commands/ssh/ss…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by noahfraiture
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants