Docker Community Forums

Share and learn in the Docker community.

Wifi connection dropped after docker start


(Tobiisdesired) #1

I am logged in to my Lubuntu 16.04.2 LTS Server over Wifi and every time I start a docker container my connection gets dropped. Because I am relatively new to docker I can only guess that is has something to do with dockers virtual network creation.

After running sudo docker run -it ubuntu bash. I can see the container/ubuntu prompt for 2-3 seconds before it freezes. Running it with --net=host works, but is not what I want.

docker version shows

Client:
 Version:      17.03.0-ce
 API version:  1.26
 Go version:   go1.7.5
 Git commit:   60ccb22
 Built:        Thu Feb 23 11:02:43 2017
 OS/Arch:      linux/amd64
Server:
 Version:      17.03.0-ce
 API version:  1.26 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   60ccb22
 Built:        Thu Feb 23 11:02:43 2017
 OS/Arch:      linux/amd64
 Experimental: false

I already described the problem in detail on stackoverflow - Wifi connection dropped after docker start. Even set a bounty on it.

Any solutions or workarounds are welcome.


Blacklist IP Ranges for docker-compose
(Sd99) #2

Interesting would be to know what you mean by "dropped"
but

  1. check network routes on host:
    sudo route -n
  2. check if some bridges are overlapping
  3. check docker networks
    docker network ls

i had a similar issue once. it was caused by the default docker ip range. you can change the default ip range of the docker
network by adding --bip=192.168.1.5/24

see: https://docs.docker.com/engine/userguide/networking/default_network/custom-docker0/

Perhaps its necessary to delete all docker networks, add the parameter to dockerd and restart.

hope that helps
steff


(Amirkarimi) #3

I had the same issue but unfortunately, I can’t reproduce.

Used docker-compose and docker run at work (it creates this docker_default bridge network).
Then connected to Wifi back home using the same machine. The wifi is connected but network disconnects (like ping 8.8.8.8) after 10 seconds. It reconnects after a while or after reconnecting to the wifi.

Environment:

OS: Ubuntu 18.04

$ docker version
Client:
 Version:	17.12.0-ce
 API version:	1.35
 Go version:	go1.9.2
 Git commit:	c97c6d6
 Built:	Wed Dec 27 20:10:45 2017
 OS/Arch:	linux/amd64

Server:
 Engine:
  Version:	17.12.0-ce
  API version:	1.35 (minimum version 1.12)
  Go version:	go1.9.2
  Git commit:	c97c6d6
  Built:	Wed Dec 27 20:09:19 2017
  OS/Arch:	linux/amd64
  Experimental:	false