Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Network Subnet Config of Test Setup Can Result in Error During Start Via Docker-Compose #293

Open
hhund opened this issue Nov 24, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@hhund
Copy link
Member

hhund commented Nov 24, 2021

Starting the 3 MeDIC/TTP docker test setup can result in Error response from daemon: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network.

According to docker/docs#8663 docker uses 172.17.0.0/12 and 192.168.0.0/16 as default address pools, we should move our hard-coded networks, e.g.

to an address range not used by docker.

Workaround:
Configure the default-address-pools via daemon.json. The following config excludes 172.20.0.0/16:

{
  "default-address-pools": [
    {
      "base": "172.17.0.0/14",
      "size": 16
    },
    {
      "base": "172.21.0.0/16",
      "size": 16
    },
    {
      "base": "172.22.0.0/15",
      "size": 16
    },
	{
      "base": "172.24.0.0/13",
      "size": 16
    }
  ]
}
@wetret wetret added the enhancement New feature or request label Dec 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants