8000 [Proposal] docker -H ssh://me@host/var/run/docker.sock · Issue #31871 · moby/moby · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Proposal] docker -H ssh://me@host/var/run/docker.sock #31871
Closed
@AkihiroSuda

Description

@AkihiroSuda

I suggest adding support for forwarding the API socket over SSH: docker -H ssh://me@host/var/run/docker.sock. (or in short form: docker -H ssh://host)

i.e. it is a user-friendly equivalent of the following script:

#!/bin/sh
tmp=$(mktemp -d)
chmod 700 $tmp
ssh -N -L $tmp/docker.sock:/var/run/docker.sock -l $USER $HOST &
sshpid=$!
docker -H unix://$tmp/docker.sock $@
status=$?
kill $sshpid
rm -rf $tmp
exit $status

Motivations:

cc @diogomonica

Metadata

Metadata

Assignees

Labels

area/securitykind/featureFunctionality or other elements that the project doesn't currently have. Features are new and shiny

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0