21

我是 Docker 新手,但不是很新,我不了解 Docker 的 cli。但是,我对 Docker 文件和 Docker Compose 做事方式非常陌生。如果有人可以向我解释 docker-compose.yml 的这一部分,我将不胜感激。

我的评论被嵌入:

networks:
  vpcbr: <-I know what this is
    driver: bridge <-I know what this is
    ipam:  <-What the heck is this for?
     config: <-I know what this is.
       - subnet: 10.5.0.0/16 <- Obvious
         gateway: 10.5.0.1 <- Obvious
4

1 回答 1

25

IPAM 是配置部分的名称。

IPAM 是首字母缩写词,代表 IP 地址管理。

在此处查看更多信息:https ://blog.docker.com/2016/03/docker-networking-design-philosophy/

于 2018-05-20T08:48:35.600 回答