Skip to content

Instantly share code, notes, and snippets.

@je-poy
Last active November 17, 2023 15:25
Show Gist options
  • Save je-poy/81495a255a47020ac983fcf478c4dd22 to your computer and use it in GitHub Desktop.
Save je-poy/81495a255a47020ac983fcf478c4dd22 to your computer and use it in GitHub Desktop.
Change Docker Bridge Network
  1. Check your bridge routing: route -n
  2. Delete conflicting bridge with docker bridge: route del -net <conflicting ip>/16
  3. Set bip property in /etc/docker/daemon.js with new docker bridge network with .1 on the last part of the ip
{
 "bip": "172.19.0.1/16"
}
  1. Restart docker service: sudo service docker restart
  2. Check bridge routing if the new bridge network is already set
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment