标签:latest work http local nbsp ipv4 图片 VLAN划分 img
单主机docker容器VLAN划分
创建4个容器
[root@localhost ~]# docker run -itd --name con1 --net=none busybox:latest /bin/sh
[root@localhost ~]# echo "1" > /proc/sys/net/ipv4/ip_forward
[root@localhost ~]# sysctl -p
[root@localhost ~]# docker run -itd --name con2 --net=none busybox:latest /bin/sh
bb5e997b23f0bb5b9af4dbb60a01b2a7e256fede40007da9327d343b29d94432
[root@localhost ~]# docker run -itd --name con3 --net=none busybox:latest /bin/sh
0d42bc7d3a97206351d83d840cd1a1b90c4ddf259baa72f1861571bafde9aebc
[root@localhost ~]# docker run -itd --name con4 --net=none busybox:latest /bin/sh
8d5a8a2ce45ad64bf094239ed8225dc74a32d9fbcb3dc84826decab6cbac2426
安装pipeword
[root@localhost ~]# yum -y install git [root@localhost ~]# git clone https://github.com/jpetazzo/pipework [root@localhost ~]# cp ~/pipework/pipework /usr/local/bin/
标签:latest work http local nbsp ipv4 图片 VLAN划分 img
原文地址:https://www.cnblogs.com/liujunjun/p/12096770.html