Created
April 14, 2021 23:18
-
-
Save falexandrou/523e12b81036128f6d845c5c94a84cfb to your computer and use it in GitHub Desktop.
Run docker daemon via SSH
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You can use a docker daemon via SSH | |
# Here's how you'd run a container via SSH | |
$ docker -H ssh://<username>:<server> -it alpine date | |
# For convenience, this can be aliased as follows: | |
# (I use rdocker — as in remote docker) | |
$ alias rdocker="docker -H myusername@myserver" | |
# Example: | |
$ rdocker run -it alpine date |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment