Docker Interface Conflict
There may be times when the docker interface IP conflicts with a network. To see the docker interface, run the command ip a It will show a response as follows. In this case, the docker interface has an IP address of 172.17.0.1
1
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
2
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
3
inet 127.0.0.1/8 scope host lo
4
valid_lft forever preferred_lft forever
5
inet6 ::1/128 scope host
6
valid_lft forever preferred_lft forever
7
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
8
link/ether c4:00:ad:6e:d5:65 brd ff:ff:ff:ff:ff:ff
9
inet 192.168.1.119/24 brd 192.168.1.255 scope global noprefixroute enp1s0
10
valid_lft forever preferred_lft forever
11
inet6 fe80::c600:adff:fe6e:d565/64 scope link
12
valid_lft forever preferred_lft forever
13
3: enp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
14
link/ether c4:00:ad:6e:d5:66 brd ff:ff:ff:ff:ff:ff
15
4: docker0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
16
link/ether 02:42:1f:ed:c1:68 brd ff:ff:ff:ff:ff:ff
17
inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
18
valid_lft forever preferred_lft forever
19
inet6 fe80::42:1fff:feed:c168/64 scope link
20
valid_lft forever preferred_lft forever
21
8: [email protected]: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master docker0 state UP group default
22
link/ether ea:15:71:5a:ae:c8 brd ff:ff:ff:ff:ff:ff link-netnsid 0
23
inet6 fe80::e815:71ff:fe5a:aec8/64 scope link
24
valid_lft forever preferred_lft forever
Copied!
An IP address conflict with the docker interface is a rare event, since the IP address range selected for the docker interface is one that should not be widely used. But if it is, then the following steps will stop the service and disable the interface from appearing. Run these commands, in order, from the device's remote shell:
1
sudo systemctl stop docker
2
sudo systemctl disable docker
3
ip link delete docker0
4
ip a ... to check the interface has disappeared
Copied!
Once this is done, the docker interface will not appear, even after a reboot.
Last modified 1mo ago
Copy link