35

I am new to Docker but not so new I don't understand the cli of Docker. However I am very new to the Docker file and Docker Compose way of doing things. If someone could explain to me this section of the docker-compose.yml I would greatly appreciate it.

My comments are embedded:

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
halfer
  • 19,824
  • 17
  • 99
  • 186
nexusguy59
  • 520
  • 1
  • 4
  • 10
  • 4
    Ipam stands for ip address management. It's the section of the config file where you pass the next couple ip settings. – BMitch May 20 '18 at 16:13
  • 1
    I know this is wayy tooo late, but incase someone comes along - 'vpcbr' is the name of the network, can be anything. One of my networks is called "bnet" (totally random). – BkiD Apr 27 '22 at 16:01

1 Answers1

37

IPAM is the name of configuration section.

IPAM is an acronym, that stands for IP Address Management.

see more here: https://www.docker.com/blog/docker-networking-design-philosophy

Miq
  • 3,931
  • 2
  • 18
  • 32
  • 23
    This blog post is so lengthy and has so little actual information. I wonder how people have so much patience. – Gherman Jan 10 '21 at 15:53
  • Archived: https://web.archive.org/web/20220320062451/https://www.docker.com/blog/docker-networking-design-philosophy/ – henry700 Jul 12 '22 at 13:12