User Tools

Site Tools


docker:change_the_default_ip_address

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
docker:change_the_default_ip_address [2020/04/15 18:49] peterdocker:change_the_default_ip_address [2020/05/13 08:34] (current) – removed peter
Line 1: Line 1:
-====== 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. 
- 
-<file bash /etc/default/docker> 
-DOCKER_OPTS="--bip=10.0.0.10/24" 
-</file> 
- 
-Check the IP: 
- 
-<code bash> 
-ip addr | grep docker 
-8: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default  
-    inet 10.0.0.10/24 brd 10.0.0.0 scope global docker0 
-</code> 
- 
-or 
- 
-<code bash> 
-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: 
-          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B) 
-</code> 
  
docker/change_the_default_ip_address.1586976546.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki