DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

Connect to Remote Docker Machines with Docker Context

2 years ago thenewstack.io
Connect to Remote Docker Machines with Docker Context

Summary: This is a summary of an article originally published by The New Stack. Read the full original article here →

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.

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com