is it possible (using the docker command or the docker-py API directly) to start a container from a remote host?
Lets assume I have two mac
Check if the latest docker 18.09 includes that feature.
See docker/cli PR 1014
Added support for SSH connection. e.g.
docker -H ssh://me@server
- The cli should accept
ssh://me@serverforDOCKER_HOSTand-H. Using that would execute ssh with the passed config.- The ssh command would call a hidden command on the docker CLI binary on the remote side. For example, docker dial-stdio.
This command will make a connection to the local
DOCKER_HOSTvariable (almost always the default local socket) and forward that connection on the commands stdio.
Even though this command is supposed to run locally to thedockerdbinary, we think that it is an invalid configuration for this feature to remove the localdockerbinary so we can rely on it always being present.How to verify it
docker -H ssh://me@server run -it --rm busybox
The reaction so far:
From ops and sysadmins everywhere, we thank you for this fantastic and unexpected feature.
I'm hoping this will seriously cut down the number of times I see people openingdockerdTCP w/o TLS and just opt for SSH endpoints for remote mgmt.