1.connect介绍
Docker网络命令connect是用来将容器连接到网络。
2.connect用法
docker network connect [参数] NETWORK CONTAINER
[root@centos79 ~]# docker network connect --help
Usage: docker network connect [OPTIONS] NETWORK CONTAINER
Connect a container to a network
Options:
--alias strings Add network-scoped alias for the container
--driver-opt strings driver options for the network
--ip string IPv4 address (e.g., "172.30.100.104")
--ip6 string IPv6 address (e.g., "2001:db8::33")
--link list Add link to another container
--link-local-ip strings Add a link-local address for the container
[root@centos79 ~]#
本文介绍了Docker的connect命令,用于将容器连接到网络。详细解析了connect的用法,包括如何将运行中的容器连接到网络以及指定容器IP地址进行连接的操作步骤。
订阅专栏 解锁全文
489

被折叠的 条评论
为什么被折叠?



