[英]How to connect local container to Docker Swarm remotely
I have Ubuntu 16 server with running docker containers in Swarm mode on it. 我有在其上以Swarm模式运行docker容器的Ubuntu 16服务器。 Server Docker version is 1.12.5, build 7392c3b
. 服务器Docker版本是1.12.5, build 7392c3b
。
I want to create Docker container on local machine (or another Ubuntu server) and give this container access to Docker Swarm network on the fist server to be able to request nodes inside Swarm. 我想在本地计算机(或另一台Ubuntu服务器)上创建Docker容器,并让该容器访问第一台服务器上的Docker Swarm网络,以便能够请求Swarm中的节点。
My local machine has Windows 10 OS. 我的本地计算机具有Windows 10 OS。
Is it possible to give access into Docker Swarm network to Docker remote container? 是否可以将Docker Swarm网络访问权限授予Docker远程容器?
Sure. 当然。 If your local machine joins the swarm ( docker swarm join
) then it would be part of the swarm overlay network. 如果您的本地计算机加入了swarm( docker swarm join
),那么它将成为swarm覆盖网络的一部分。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.