Docker is a great tool for developing and deploying containerized applications and services. With the command line, you can do nearly everything you need to get things developed and deployed.

What I want to do is show you how to use Docker Context to connect to a remote Docker instance.

The first thing we must do is unset our variable with: We can now create a new context like so: docker context create node2 --description "Docker Node 2" --docker "host=ssh://$TARGET_HOST"

And that’s all there is to connect to a remote Docker node with the docker context command.

Related Articles