prologic

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 /var/run/docker.sock).

Here’s how:

$ 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! ๐Ÿ™‡โ€โ™‚๏ธ

Comments:

Recent tws in reply to this post.

There are no twts yet... come back later!
You must be Logged in to comment.