跳至正文
Wener Notes

Docker Advanced

约 1 分钟阅读
标签:DevOpsDockerAdvanced

Macvlan

bash
# 会从 10.99.0.1 开始分发 ip
docker network create -d macvlan \
  --subnet=10.90.0.0/16 \
  --gateway=10.90.1.1 \
  -o parent=br0 mynet

docker network create -d macvlan \
  --gateway=10.90.1.1 \
  -o parent=br0 mynet

docker network create -d macvlan \
  --subnet=10.90.0.0/16 \
  --gateway=10.90.1.1 \
  --ipam-driver=nil \
  -o parent=br0 mynet
bash
docker run --rm -it --net mynet wener/base

Plugins

关联信息

反向链接、本文链接的其他页面和外部资料。

参考资料

GitHub3 条
其他外链1 条
最近更新commit 906e816编辑