User Tools

Site Tools


docker:change_the_default_ip_address

This is an old revision of the document!


Docker - Change the default IP address

Change the default 172.17.0.0/16 network.

Add DOCKER_OPTS=“–bip=10.0.0.10/24” to /etc/docker/docker.io and reboot.

/etc/default/docker
DOCKER_OPTS="--bip=10.0.0.10/24"

Check the IP:

ifconfig docker0
docker0   Link encap:Ethernet  HWaddr 56:84:7a:fe:97:99  
          inet addr:10.0.0.10  Bcast:0.0.0.0  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
docker/change_the_default_ip_address.1487282821.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki