Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道,在创建服务时,我们可以指定网络。但是如果已经有一些服务,那么如何将它们添加到网络中呢?
尝试更新服务,如下所示:
docker service update --network-add my_network my_service_name
您可以在此处阅读有关使用更新命令还能做什么