Accessing Docker Remote API over SSH
For anyone that uses Docker for their production workloads, might not know that you can access the Docker Remote API over SSH without having to reconfigure the Docker daemon at all (leaving it accessibly on its default UNIX socket at
$ docker context foo --docker "[email protected]" $ docker use foo $ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
As is often the case, the documentation on this was quite frankly terrible with few examples or explanations of what values you could use for the arguments to various options.
What helped a lot was another blog post by @mikesir87. Thanks! 🙇♂️