Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

TODO: Fill in instructions for doing this

Docker Swarm

Default address pool must be set on creation and cannot be changed

docker swarm init --default-addr-pool 10.255.0.0/16 --default-addr-pool-mask-length 25

default-addr-pool-mask-length specifies the default network size for each docker network. /25 contains 128 addresses, so adjust based on your needs.

Podman

See https://github.com/containers/common/blob/main/docs/containers.conf.5.md for configuration locations

Code Block
[network]
default_subnet="10.255.0.0/24"
default_subnet_pools = [
  {"base" = "10.255.1.0/24", "size": 25},
  {"base" = "10.255.2.0/23", "size": 25},
  {"base" = "10.255.4.0/22", "size": 25},
  {"base" = "10.255.8.0/21", "size": 25},
  {"base" = "10.255.16.0/20", "size": 25},
  {"base" = "10.255.32.0/19", "size": 25},
  {"base" = "10.255.64.0/18", "size": 25},
  {"base" = "10.255.128.0/17", "size": 25},
]

size specifies the default network size for each docker network. /25 contains 128 addresses, so adjust based on your needs.

Kubernetes

This is highly dependent on which provider you are using. k3s uses docker, so use the Docker instructions.

...