1,把nginx01容器连接到另一个网络下并指定IP,nginx01会新生成一个网卡,属于1ece616ce074 网络(目的可以和另一个网络下的容器互通)

[root@shoushoushou ~]# docker network connect --ip 192.168.100.100  1ece616ce074 nginx01

2,相反操作,从1ece616ce074 网络中剥离nginx01容器

[root@shoushoushou ~]# docker network disconnect   1ece616ce074 nginx01