If I want to use a static IP for my container I must declare my own network and start the container with --net mynet0 --ip

Why is it not possible to use a static IP address within the docker deafult bridge? Why so cumbersome making me create a new network?

  • It's a bit confusing. You have IP assigned to the bridge and you expect, that the same IP could be used in the container too? – Jaroslav Kucera Dec 12 '17 at 17:46
  • Yeah ok, sorry for that: I want to have a static IPs in the default Bridge and that's not possible. But I can only use static IPs within an user-defined network. A static IP within the default Bridge, that's what I want. – chevallier Dec 12 '17 at 20:22

you can set a default bridge ip by either editing /etc/docker/daemon.json or starting the daemon with flag --bip=<ip>/<cidr>


  • Sorry man I'm not talking about a default bridge IP, I'm talking about a static IP for a container in the default bridge. – chevallier Dec 16 '17 at 13:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.