33

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
2
  • 3
    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, 2018 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, 2022 at 16:01

1 Answer 1

34

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

5

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.