{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/18113","labels_url":"https://api.github.com/repos/docker/docker/issues/18113/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/18113/comments","events_url":"https://api.github.com/repos/docker/docker/issues/18113/events","html_url":"https://github.com/docker/docker/issues/18113","id":117973507,"number":18113,"title":"Docker fails to create network bridge on start up ","user":{"login":"Chili-Man","id":631802,"avatar_url":"https://avatars.githubusercontent.com/u/631802?v=3","gravatar_id":"","url":"https://api.github.com/users/Chili-Man","html_url":"https://github.com/Chili-Man","followers_url":"https://api.github.com/users/Chili-Man/followers","following_url":"https://api.github.com/users/Chili-Man/following{/other_user}","gists_url":"https://api.github.com/users/Chili-Man/gists{/gist_id}","starred_url":"https://api.github.com/users/Chili-Man/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chili-Man/subscriptions","organizations_url":"https://api.github.com/users/Chili-Man/orgs","repos_url":"https://api.github.com/users/Chili-Man/repos","events_url":"https://api.github.com/users/Chili-Man/events{/privacy}","received_events_url":"https://api.github.com/users/Chili-Man/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/group/networking","name":"group/networking","color":"F6FBFF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2015-11-20T06:22:23Z","updated_at":"2015-12-23T11:04:38Z","closed_at":null,"body":"Description of problem:\r\nWhen freshly installing the docker 1.9.0 daemon, it sometimes fails to create the network bridge at startup and thus fails to start the daemon. It seems to fail about 50% of the time and I'm not sure why. Here's some of the log output:\r\n```\r\ntime=\"2015-11-20T05:32:35.395996380Z\" level=info msg=\"API listen on /var/run/docker.sock\" \r\ntime=\"2015-11-20T05:32:35.415570660Z\" level=info msg=\"Firewalld running: false\" \r\ntime=\"2015-11-20T05:32:35.441312772Z\" level=info msg=\"Default bridge (docker0) is assigned with an IP address 172.17.0.1/16. Daemon option --bip can be used to set a preferred IP address\" \r\ntime=\"2015-11-20T05:32:35.445369505Z\" level=fatal msg=\"Error starting daemon: Error initializing network controller: Error creating default \\\"bridge\\\" network: failed to allocate gateway (172.17.0.1): No available addresses on this pool\" \r\ntime=\"2015-11-20T05:32:35.562979814Z\" level=info msg=\"API listen on /var/run/docker.sock\" \r\ntime=\"2015-11-20T05:32:35.581794400Z\" level=info msg=\"Firewalld running: false\" \r\ntime=\"2015-11-20T05:32:35.672030288Z\" level=info msg=\"Default bridge (docker0) is assigned with an IP address 172.17.0.1/16. Daemon option --bip can be used to set a preferred IP address\" \r\ntime=\"2015-11-20T05:32:35.677536533Z\" level=fatal msg=\"Error starting daemon: Error initializing network controller: Error creating default \\\"bridge\\\" network: failed to allocate gateway (172.17.0.1): No available addresses on this pool\" \r\n\r\n```\r\n\r\n\r\n\r\n`docker version`:\r\n```\r\nClient:\r\n Version:      1.9.0\r\n API version:  1.21\r\n Go version:   go1.4.2\r\n Git commit:   76d6bc9\r\n Built:        Tue Nov  3 17:43:42 UTC 2015\r\n OS/Arch:      linux/amd64\r\nCannot connect to the Docker daemon. Is the docker daemon running on this host?\r\n```\r\n\r\n`docker info`:\r\n```\r\nContainers: 0\r\nImages: 0\r\nServer Version: 1.9.0\r\nStorage Driver: overlay\r\n Backing Filesystem: extfs\r\nExecution Driver: native-0.2\r\nLogging Driver: json-file\r\nKernel Version: 4.2.0-18-generic\r\nOperating System: Ubuntu 14.04.3 LTS\r\nCPUs: 1\r\nTotal Memory: 2.045 GiB\r\nName: vagrant\r\nID: 253M:O5XT:BJQK:AHRB:U5MI:OQZL:UUK4:YZAR:6XIH:XHV2:62QQ:3BET\r\nWARNING: No swap limit support\r\n\r\n```\r\n`Cannot connect to the Docker daemon. Is the docker daemon running on this host?`\r\n\r\n`uname -a`:\r\n`Linux default-ubuntu-1404 4.2.0-18-generic #22~14.04.1-Ubuntu SMP Fri Nov 6 22:20:11 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux`\r\n\r\n\r\nEnvironment details (AWS, VirtualBox, physical, etc.):\r\nI've ran into this issue on both AWS and Virtualbox with the latest ubuntu 14.04 images with the `linux-virtual-lts-wily` kernels installed (4.2.0) \r\n\r\nHow reproducible:\r\nIt seems to be about a 50% chance that the install will fail due to not being able to create the network bridge interface at start up\r\n\r\nSteps to Reproduce:\r\n1. Install the `linux-virtual-lts-wily` package onto an ubuntu 14.04 virtual box or AWS server\r\n2. Install Docker 1.9.0, and enable the daemon with `-s overlay`\r\n3. Sometimes it will fail, sometimes it will succeed\r\n\r\n\r\nActual Results:\r\nDocker does not run\r\n\r\nExpected Results:\r\nDocker daemon should be running\r\n\r\nAdditional info:\r\nI dont get this error if I use the `linux-virtual-lts-vivid` kernel (3.19) instead. "},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/166863743","html_url":"https://github.com/docker/docker/issues/18113#issuecomment-166863743","issue_url":"https://api.github.com/repos/docker/docker/issues/18113","id":166863743,"user":{"login":"ablojh","id":16399287,"avatar_url":"https://avatars.githubusercontent.com/u/16399287?v=3","gravatar_id":"","url":"https://api.github.com/users/ablojh","html_url":"https://github.com/ablojh","followers_url":"https://api.github.com/users/ablojh/followers","following_url":"https://api.github.com/users/ablojh/following{/other_user}","gists_url":"https://api.github.com/users/ablojh/gists{/gist_id}","starred_url":"https://api.github.com/users/ablojh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ablojh/subscriptions","organizations_url":"https://api.github.com/users/ablojh/orgs","repos_url":"https://api.github.com/users/ablojh/repos","events_url":"https://api.github.com/users/ablojh/events{/privacy}","received_events_url":"https://api.github.com/users/ablojh/received_events","type":"User","site_admin":false},"created_at":"2015-12-23T11:04:38Z","updated_at":"2015-12-23T11:04:38Z","body":"@aboch, I just hit this issue when upgrading our 1.9.0 machines to 1.9.1 on Ubuntu 14.04.\r\n\r\n\"Fix\" was to delete the /var/lib/docker/network/files/local-kv.db file.\r\n\r\nIf you guys need another local-kv.db file to look at, I can send it to you."}}