I registered on my Lubuntu 16.04.2 LTS Server via Wi-Fi, and every time I launch the docker container, my connection is deleted. Since I'm relatively new to docker, I can only guess that this is due to the creation of a virtual docker network. I should also mention that I disabled ipv6, but it does not make any difference if enabled.
Here is my syslog , it shows what happens when I run sudo docker run -it ubuntu bash
. I see that the container / ubuntu asks for 2-3 seconds before it freezes. Doing it with help --net=host
works, but that is not what I want.
ifconfig
shows
docker0 Link encap:Ethernet HWaddr 02:42:8d:8b:b7:4c
inet addr:172.17.0.1 Bcast:0.0.0.0 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:162 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:536 (536.0 B) TX bytes:9678 (9.6 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:538 errors:0 dropped:0 overruns:0 frame:0
TX packets:538 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:49592 (49.5 KB) TX bytes:49592 (49.5 KB)
vethee1cf14 Link encap:Ethernet HWaddr ba:53:4c:08:89:64
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:167 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:648 (648.0 B) TX bytes:9888 (9.8 KB)
wlp2s0 Link encap:Ethernet HWaddr f4:06:69:5d:ba:f6
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:3082 errors:0 dropped:0 overruns:0 frame:0
TX packets:2916 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:556197 (556.1 KB) TX bytes:569381 (569.3 KB)
docker network inspect bridge
shows
[
{
"Name": "bridge",
"Id": "8ec46d17f5cba798c8aba5c8457e019dcb24eade1285054f59c3430c33ff74f8",
"Created": "2017-03-04T10:44:27.966018717+01:00",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "172.17.0.0/16",
"Gateway": "172.17.0.1"
}
]
},
"Internal": false,
"Attachable": false,
"Containers": {},
"Options": {
"com.docker.network.bridge.default_bridge": "true",
"com.docker.network.bridge.enable_icc": "true",
"com.docker.network.bridge.enable_ip_masquerade": "true",
"com.docker.network.bridge.host_binding_ipv4": "0.0.0.0",
"com.docker.network.bridge.name": "docker0",
"com.docker.network.driver.mtu": "1500"
},
"Labels": {}
}
]
When docker stopped ip a
showing
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether f4:06:69:5d:ba:f6 brd ff:ff:ff:ff:ff:ff
inet 192.168.178.21/24 brd 192.168.178.255 scope global wlp2s0
valid_lft forever preferred_lft forever
inet6 fe80::f606:69ff:fe5d:baf6/64 scope link
valid_lft forever preferred_lft forever
3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
link/ether 02:42:6f:0c:38:7a brd ff:ff:ff:ff:ff:ff
inet 172.17.0.1/16 scope global docker0
valid_lft forever preferred_lft forever
Wi-Fi-? . , .
UPDATE
. , , - .
cat /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile,ofono
dns=dnsmasq
[ifupdown]
managed=false
cat /etc/network/interfaces
auto lo
iface lo inet loopback
, . , ?
UPDATE
nmcli dev
DEVICE TYPE STATE CONNECTION
docker0 bridge connected docker0
wlp2s0 wifi unavailable --
vethf9342a9 ethernet unmanaged --
lo loopback unmanaged --
DEVICE TYPE STATE CONNECTION
docker0 bridge connected docker0
wlp2s0 wifi connected meins
lo loopback unmanaged --
.
UPDATE
/etc/NetworkManager/NetworkManager.conf
, NetworkManager .
[keyfile]
unmanaged-devices=interface-name:docker0;interface-name:veth*
, . , DHCP.