Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli/connhelper: support overriding the docker binary over SSH #5627

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mattmacleod
Copy link

This change adds the ability to override the docker binary used when executing commands over SSH. This is useful when the docker binary is not in the PATH of the SSH user, or when the binary is not named docker.

If DOCKER_SSH_REMOTE_BINARY is set in the environment, the value will be used as the docker binary when executing commands over SSH. If the environment variable is not set, the default value of docker will be used.

Closes #5626

- Description for the changelog

Support the `DOCKER_SSH_REMOTE_BINARY` environment variable for overriding the `docker` binary used on remote SSH hosts.

- A picture of a cute animal (not mandatory but encouraged)

IMG_1013

This change adds the ability to override the docker binary used when executing
commands over SSH. This is useful when the docker binary is not in the PATH of
the SSH user, or when the binary is not named `docker`.

If `DOCKER_SSH_REMOTE_BINARY` is set in the environment, the value will be used
as the docker binary when executing commands over SSH. If the environment
variable is not set, the default value of `docker` will be used.

Signed-off-by: Matthew MacLeod <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove hardcoded docker CLI command name for SSH hosts
1 participant