1、默认就是bridge模式
2、host使用示例
docker run --net=host --name cs20 centos:v1 /bin/bash
3、container使用示例
docker run -it --net=container:cs5 --name cs21 centos:v1 /bin/bash
使用其它容器的IP
4、 docker run -it --net=none --name cs23 centos:v1 /bin/bash