{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/23078","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/23078/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/23078/comments","events_url":"https://api.github.com/repos/docker/docker/issues/23078/events","html_url":"https://github.com/docker/docker/issues/23078","id":157335171,"number":23078,"title":"Issue #20312 still open with 1.11.1","user":{"login":"ascheman","id":456000,"avatar_url":"https://avatars.githubusercontent.com/u/456000?v=3","gravatar_id":"","url":"https://api.github.com/users/ascheman","html_url":"https://github.com/ascheman","followers_url":"https://api.github.com/users/ascheman/followers","following_url":"https://api.github.com/users/ascheman/following{/other_user}","gists_url":"https://api.github.com/users/ascheman/gists{/gist_id}","starred_url":"https://api.github.com/users/ascheman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ascheman/subscriptions","organizations_url":"https://api.github.com/users/ascheman/orgs","repos_url":"https://api.github.com/users/ascheman/repos","events_url":"https://api.github.com/users/ascheman/events{/privacy}","received_events_url":"https://api.github.com/users/ascheman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/group/networking","name":"group/networking","color":"F6FBFF"},{"url":"https://api.github.com/repos/docker/docker/labels/version/1.11","name":"version/1.11","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/docker/docker/milestones/53","html_url":"https://github.com/docker/docker/milestones/1.12.0","labels_url":"https://api.github.com/repos/docker/docker/milestones/53/labels","id":1657301,"number":53,"title":"1.12.0","description":"feature/code freeze: June 14th, 2016","creator":{"login":"thaJeztah","id":1804568,"avatar_url":"https://avatars.githubusercontent.com/u/1804568?v=3","gravatar_id":"","url":"https://api.github.com/users/thaJeztah","html_url":"https://github.com/thaJeztah","followers_url":"https://api.github.com/users/thaJeztah/followers","following_url":"https://api.github.com/users/thaJeztah/following{/other_user}","gists_url":"https://api.github.com/users/thaJeztah/gists{/gist_id}","starred_url":"https://api.github.com/users/thaJeztah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaJeztah/subscriptions","organizations_url":"https://api.github.com/users/thaJeztah/orgs","repos_url":"https://api.github.com/users/thaJeztah/repos","events_url":"https://api.github.com/users/thaJeztah/events{/privacy}","received_events_url":"https://api.github.com/users/thaJeztah/received_events","type":"User","site_admin":false},"open_issues":63,"closed_issues":406,"state":"open","created_at":"2016-03-21T13:47:53Z","updated_at":"2016-06-27T20:05:55Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2016-05-28T11:52:19Z","updated_at":"2016-06-27T20:05:55Z","closed_at":"2016-06-27T20:05:55Z","body":"I still see the problem reported in #20312 with Docker 1.11.1 occasionally.\r\nThe first start leaves a file `/var/lib/docker/network/files//local-kv.db` and then any subsequent try to restart docker fails with a message like\r\n\r\n    time=\"2016-05-28T11:15:14.366122921Z\" level=fatal msg=\"Error starting daemon: Error initializing network controller: Error creating default \\\"bridge\\\" network: failed to allocate gateway (172.17.0.1): Address already in use\"\r\n\r\nIf I remove the local-kv.db file Docker starts without problems.\r\n\r\nI have a CI process which runs a Vagrant box (based on VirtualBox/ubuntu:14.04) which installs Docker and frequently runs into this problem (3 out of the last 10 tries).\r\n\r\nSo, please, please, PLEASE do not only solve the issue but also set up a CI job to install Docker development/release candidates again and again (should run every few minutes) to detect such race conditions in the future as early as possible! I would be glad to help set up such an CI environment.\r\n\r\n**Output of `docker version`:**\r\n\r\n```\r\nClient:\r\n Version:      1.11.1\r\n API version:  1.23\r\n Go version:   go1.5.4\r\n Git commit:   5604cbe\r\n Built:        Tue Apr 26 23:30:23 2016\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.11.1\r\n API version:  1.23\r\n Go version:   go1.5.4\r\n Git commit:   5604cbe\r\n Built:        Tue Apr 26 23:30:23 2016\r\n OS/Arch:      linux/amd64\r\n```\r\n\r\n**Output of `docker info`:**\r\n\r\n```\r\nContainers: 0\r\n Running: 0\r\n Paused: 0\r\n Stopped: 0\r\nImages: 0\r\nServer Version: 1.11.1\r\nStorage Driver: devicemapper\r\n Pool Name: docker-8:1-267052-pool\r\n Pool Blocksize: 65.54 kB\r\n Base Device Size: 10.74 GB\r\n Backing Filesystem: ext4\r\n Data file: /dev/loop0\r\n Metadata file: /dev/loop1\r\n Data Space Used: 305.7 MB\r\n Data Space Total: 107.4 GB\r\n Data Space Available: 40.32 GB\r\n Metadata Space Used: 729.1 kB\r\n Metadata Space Total: 2.147 GB\r\n Metadata Space Available: 2.147 GB\r\n Udev Sync Supported: true\r\n Deferred Removal Enabled: false\r\n Deferred Deletion Enabled: false\r\n Deferred Deleted Device Count: 0\r\n Data loop file: /var/lib/docker/devicemapper/devicemapper/data\r\n WARNING: Usage of loopback devices is strongly discouraged for production use. Either use `--storage-opt dm.thinpooldev` or use `--storage-opt dm.no_warn_on_loop_devices=true` to suppress this warning.\r\n Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata\r\n Library Version: 1.02.77 (2012-10-15)\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins: \r\n Volume: local\r\n Network: bridge null host\r\nKernel Version: 3.13.0-85-generic\r\nOperating System: Ubuntu 14.04.4 LTS\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 1\r\nTotal Memory: 2.939 GiB\r\nName: devopssquare-full\r\nID: QS4Q:JKGK:EY35:QZU3:BN4A:LYGN:OKSZ:O7GQ:7VO5:DNA2:IIYA:GRV6\r\nDocker Root Dir: /var/lib/docker\r\nDebug mode (client): false\r\nDebug mode (server): true\r\n File Descriptors: 13\r\n Goroutines: 27\r\n System Time: 2016-05-28T11:40:30.503757476Z\r\n EventsListeners: 0\r\nRegistry: https://index.docker.io/v1/\r\nWARNING: No swap limit support\r\n```\r\n\r\n**Additional environment details (AWS, VirtualBox, physical, etc.):**\r\n\r\n- VirtualBox 5.0.14\r\n- Vagrant 1.7.4\r\n- Host: Ubuntu 15.10\r\n- Guest: Ubuntu 14.04 LTS\r\n\r\n**Steps to reproduce the issue:**\r\nCheck out https://github.com/ascheman/minimal4dockerproblem and run something like the following shell loop\r\n\r\n```\r\n#!/bin/bash\r\n\r\nset -e\r\n\r\nwhile true\r\ndo\r\n    vagrant destroy -f\r\n    sleep 10 # Short wait\r\n    vagrant up\r\n    sleep 300 # Wait 5 minutes for the next try\r\ndone\r\n```\r\nAfter some tries you will run into the problem and can log into the Vagrant machine (the loop is automatically stopped then) to further investigate the problem.\r\n\r\n**Describe the results you received:**\r\nsee above: Docker fails to start during first install.\r\n\r\n**Describe the results you expected:**\r\nExpecting Docker to start :-)\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\nHappens here in 3/10 tries"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/228859255","html_url":"https://github.com/docker/docker/issues/23078#issuecomment-228859255","issue_url":"https://api.github.com/repos/docker/docker/issues/23078","id":228859255,"user":{"login":"tiborvass","id":827131,"avatar_url":"https://avatars.githubusercontent.com/u/827131?v=3","gravatar_id":"","url":"https://api.github.com/users/tiborvass","html_url":"https://github.com/tiborvass","followers_url":"https://api.github.com/users/tiborvass/followers","following_url":"https://api.github.com/users/tiborvass/following{/other_user}","gists_url":"https://api.github.com/users/tiborvass/gists{/gist_id}","starred_url":"https://api.github.com/users/tiborvass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiborvass/subscriptions","organizations_url":"https://api.github.com/users/tiborvass/orgs","repos_url":"https://api.github.com/users/tiborvass/repos","events_url":"https://api.github.com/users/tiborvass/events{/privacy}","received_events_url":"https://api.github.com/users/tiborvass/received_events","type":"User","site_admin":false},"created_at":"2016-06-27T20:05:55Z","updated_at":"2016-06-27T20:05:55Z","body":"Okay thanks."}}
{"actor":{"display_login":"tiborvass"}}