docker容器VLAN划分
Posted liujunjun
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker容器VLAN划分相关的知识,希望对你有一定的参考价值。
单主机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/
以上是关于docker容器VLAN划分的主要内容,如果未能解决你的问题,请参考以下文章
Docker删除报错:Error response from daemon: conflict: unable to delete 08b152afcfae (must be forced)(代码片段