Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the purpose of the "ipam" key in a Docker Compose config?

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
like image 918
nexusguy59 Avatar asked May 20 '18 07:05

nexusguy59


People also ask

What is IPAM docker compose?

Ipam stands for ip address management. It's the section of the config file where you pass the next couple ip settings.

What is the purpose of the docker compose tool?

Docker Compose is a tool that was developed to help define and share multi-container applications. With Compose, we can create a YAML file to define the services and with a single command, can spin everything up or tear it all down.

What is docker compose config?

Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application's services. Then, with a single command, you create and start all the services from your configuration.

What are the three main steps of docker compose?

Basically, using Compose in Docker is a three-step process: At very first, define app's environment with a Dockerfile hence we can reproduce it anywhere. Afterwards, define the services that make up the app in docker-compose. yml hence it can be run together in an isolated environment.


1 Answers

IPAM is the name of configuration section.

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

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

like image 143
Miq Avatar answered Oct 18 '22 10:10

Miq