#StackBounty: #18.04 #docker #routing #ifconfig Routing Docker in ubuntu

Bounty: 100

In my routing table on Ubuntu 18.04 I have these entries:

172.17.0.0      0.0.0.0         255.255.0.0     U     0      0        0 br-9f3f970041e3
172.18.0.0      0.0.0.0         255.255.0.0     U     0      0        0 br-66d1d4ca46a2
172.19.0.0      0.0.0.0         255.255.0.0     U     0      0        0 docker0

The docker0 entry I managed to move to a different IP range by creating a /etc/docker/daemon.json file and adding {"bip": "172.19.0.1/16"} to it.

I’m not sure where the br-* entries come from but I know that if I remove them that Docker stops working so they are used by Docker.

I need to have Docker assign these br-* addresses at 172.20.0.0 and 172.21.0.0 because the corp network uses the ones that they are currently occupying.

Questions:

  1. What part of Docker is creating these br-* entries?
  2. How does Docker use these entries?
  3. How can I configure Docker to assign them to other ranges?


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.