New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu 16.04 clean install of docker-engine fails to initialize network bridge #24738
Comments
@quinnkjones |
@quinnkjones you mention that you got the "Please cleanup or explicitly choose storage driver" message;
Did you only start the daemon manually with that option, or also update the daemon configuration (either by using a systemd drop-in file, or by using a
Other than that, please check the link that @aboch provided |
Thanks to you both for replying, I've only just now gotten off of work, so it's time to reply! Better yet! it appears the problem has solved itself in classic linux style by turning it off and on again, as suggested in the installation instructions I used the sudo reboot command to reboot between installing the headers and installing the docker-engine; and in addition I rebooted in this fashion multiple time when it wasn't working. But now after a hard boot, no problems; I can only assume there must be some functional difference at least for my setup that causes the former not to work. |
Thanks! Good to hear it's resolved. I'll go ahead and close this, but comment if you encounter this again 👍 |
So apparently this happens intermittently as it is now happening again!
My guess now is that the main difference between the set of times when I could run docker and the set of times I couldn't is that I can run docker in my apartment (or more accurately when I'm on my apartments very simple network), but when I'm at work (rather on a university buildings network) the routes are different enough to cause the error. Is the problem the A class netmask on 10.0.0.0? or the ambitious default gateway? |
Even more support for my theory of the network people being responsible I had a meeting in another building, and I tried again to start the daemon service and it worked, despite being on the same enterprise network, so it must be something with the gateway setup in the building in which I work.
Though interestingly now that I've got that to occur when I attempt to run a "hello world" container:
I get the error:
Which is odd, as I haven't changed the host setting in the systemd service command. It is still set as -H fd://. I've attempted to call docker run with -H fd:// but no luck. |
I just faced the same issue. In my case, it was my VPN who was causing trouble. As soon as I disconnected, the installation worked. Then I connected the VPN again and run the |
same here with bitmask (vpn) running.. Docker version 1.12.3, build 6b644ec turning off bitmask helped docker systemd service starting... |
Ha ha. Thread locking is a great solution of problem. No complains - no problem. Yes, I have same problem |
@slayer did you try the workaround suggested in that issue : moby/libnetwork#779 (comment) ? |
@mavenugo sure. And it works for me. Thanks. IMHO that is not a solution. Its a dirty workaround. |
@slayer you can set the option through the |
@thaJeztah Thanks. I've already added bip config to /etc/default/docker. What you think about ignoring /1 (and maybe /2 too) masks in network selection decision ? |
@slayer I think your suggestion is a good compromise. Feel free to push a PR in libnetwork. |
@aboch I think a better fix would be to check only the interface subnets on the host for the conflict. wdyt ? |
On a clean installation of 1.11.2 on Ubuntu 16.04 xenial docker daemon fails to start reporting: "="Error starting daemon: Error initializing network controller: Error creating default "bridge" network: failed to parse pool request for address space "LocalDefault" pool "" subpool "": could not find an available predefined network"
when called via sudo service docker start as listed in the installation page.
When calling via sudo docker daemon at first I get the error Error starting daemon: error initializing graphdriver: "/var/lib/docker" contains several valid graphdrivers: aufs, overlay; Please cleanup or explicitly choose storage driver (-s )
But if I, as suggested by the error message, call sudo docker daemon -s overlay or -s aufs I again receive the error message from above.
I did read through the issues with the same error from earlier versions of docker and attempted the workarounds found there, namely sudo rm -rf /var/lib/docker/network which does not resolve the issue. The other solution my research brought up was to use ifconfig docker0 down, and then restart the bridge, but in this scenario there is no docker0 adapter to disable when I attempt to start the daemon, so I didn't continue down that path.
I considered posting this in #18113, however it is closed due to being reported as fixed in version 1.10.0, so I've created a new one as it would appear to still be an issue, let me know if that was incorrect.
BUG REPORT INFORMATION
Docker Version
Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
Physical computer running Ubuntu 16.04
output of uname -a:
Steps to reproduce the issue:
service docker start
-> receive errorsystemctl status docker.service
Describe the results you received:
Full log from systemctl status docker.service
relevant output of
journalctl -xe
:Describe the results you expected:
No error code and a running docker daemon preferably.
Additional information you deem important (e.g. issue happens only occasionally):
Occurs consistently despite multiple reboots, attempts etc.
The text was updated successfully, but these errors were encountered: