{"action":"created","issue":{"url":"https://api.github.com/repos/docker/distribution/issues/2571","repository_url":"https://api.github.com/repos/docker/distribution","labels_url":"https://api.github.com/repos/docker/distribution/issues/2571/labels{/name}","comments_url":"https://api.github.com/repos/docker/distribution/issues/2571/comments","events_url":"https://api.github.com/repos/docker/distribution/issues/2571/events","html_url":"https://github.com/docker/distribution/issues/2571","id":313793456,"number":2571,"title":"\"ipv6\": true in /etc/docker/daemon.json leads to \"Error starting daemon: Error initializing network controller: Error creating default \"bridge\" network: could not find an available, non-overlapping IPv6 address pool among the defaults to assign to the network\"","user":{"login":"jean-christophe-manciot","id":13176858,"avatar_url":"https://avatars3.githubusercontent.com/u/13176858?v=4","gravatar_id":"","url":"https://api.github.com/users/jean-christophe-manciot","html_url":"https://github.com/jean-christophe-manciot","followers_url":"https://api.github.com/users/jean-christophe-manciot/followers","following_url":"https://api.github.com/users/jean-christophe-manciot/following{/other_user}","gists_url":"https://api.github.com/users/jean-christophe-manciot/gists{/gist_id}","starred_url":"https://api.github.com/users/jean-christophe-manciot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jean-christophe-manciot/subscriptions","organizations_url":"https://api.github.com/users/jean-christophe-manciot/orgs","repos_url":"https://api.github.com/users/jean-christophe-manciot/repos","events_url":"https://api.github.com/users/jean-christophe-manciot/events{/privacy}","received_events_url":"https://api.github.com/users/jean-christophe-manciot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-12T16:08:00Z","updated_at":"2018-04-26T16:31:09Z","closed_at":null,"author_association":"NONE","body":"- Ubuntu 17.10\r\n- docker-ce 18.04.0~ce~3-0~ubuntu\r\n\r\nDespite what the error message states, there is more than a lot of private IPv6 space left for allocation.\r\n\r\n1) **With \"ipv6\": false in /etc/docker/daemon.json**:\r\n```\r\n# more /etc/docker/daemon.json \r\n{\r\n  \"debug\": true,\r\n  \"ipv6\": false\r\n}\r\n# systemctl status docker\r\n● docker.service - Docker Application Container Engine\r\n   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)\r\n   Active: active (running) since Thu 2018-04-12 17:59:07 CEST; 4s ago\r\n     Docs: https://docs.docker.com\r\n Main PID: 30159 (dockerd)\r\n    Tasks: 28\r\n   Memory: 72.1M\r\n      CPU: 294ms\r\n   CGroup: /system.slice/docker.service\r\n           ├─30159 /usr/bin/dockerd -H fd://\r\n           └─30183 docker-containerd --config /var/run/docker/containerd/containerd.toml\r\n\r\nApr 12 17:59:07 samsung-ubuntu dockerd[30159]: time=\"2018-04-12T17:59:07.989898650+02:00\" level=debug msg=\"Registering GET, /distribution/{name:.*}/json\"\r\nApr 12 17:59:07 samsung-ubuntu dockerd[30159]: time=\"2018-04-12T17:59:07.989942023+02:00\" level=debug msg=\"Registering GET, /networks\"\r\nApr 12 17:59:07 samsung-ubuntu dockerd[30159]: time=\"2018-04-12T17:59:07.989974638+02:00\" level=debug msg=\"Registering GET, /networks/\"\r\nApr 12 17:59:07 samsung-ubuntu dockerd[30159]: time=\"2018-04-12T17:59:07.990002798+02:00\" level=debug msg=\"Registering GET, /networks/{id:.+}\"\r\nApr 12 17:59:07 samsung-ubuntu dockerd[30159]: time=\"2018-04-12T17:59:07.990045135+02:00\" level=debug msg=\"Registering POST, /networks/create\"\r\nApr 12 17:59:07 samsung-ubuntu dockerd[30159]: time=\"2018-04-12T17:59:07.990080443+02:00\" level=debug msg=\"Registering POST, /networks/{id:.*}/connect\"\r\nApr 12 17:59:07 samsung-ubuntu dockerd[30159]: time=\"2018-04-12T17:59:07.990129081+02:00\" level=debug msg=\"Registering POST, /networks/{id:.*}/disconnect\"\r\nApr 12 17:59:07 samsung-ubuntu dockerd[30159]: time=\"2018-04-12T17:59:07.990179553+02:00\" level=debug msg=\"Registering POST, /networks/prune\"\r\nApr 12 17:59:07 samsung-ubuntu dockerd[30159]: time=\"2018-04-12T17:59:07.990238906+02:00\" level=debug msg=\"Registering DELETE, /networks/{id:.*}\"\r\nApr 12 17:59:07 samsung-ubuntu dockerd[30159]: time=\"2018-04-12T17:59:07.990564251+02:00\" level=info msg=\"API listen on /var/run/docker.sock\"\r\n```\r\n2) **With \"ipv6\": true in /etc/docker/daemon.json**:\r\n```\r\n# more /etc/docker/daemon.json \r\n{\r\n  \"debug\": true,\r\n  \"ipv6\": true\r\n}\r\n# systemctl restart docker\r\nJob for docker.service failed because the control process exited with error code.\r\nSee \"systemctl  status docker.service\" and \"journalctl  -xe\" for details.\r\n# systemctl status docker\r\n● docker.service - Docker Application Container Engine\r\n   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)\r\n   Active: failed (Result: exit-code) since Thu 2018-04-12 18:04:07 CEST; 11s ago\r\n     Docs: https://docs.docker.com\r\n  Process: 4214 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)\r\n Main PID: 4214 (code=exited, status=1/FAILURE)\r\n      CPU: 207ms\r\n\r\nApr 12 18:04:06 samsung-ubuntu systemd[1]: docker.service: Unit entered failed state.\r\nApr 12 18:04:06 samsung-ubuntu systemd[1]: docker.service: Failed with result 'exit-code'.\r\nApr 12 18:04:07 samsung-ubuntu systemd[1]: docker.service: Service hold-off time over, scheduling restart.\r\nApr 12 18:04:07 samsung-ubuntu systemd[1]: Stopped Docker Application Container Engine.\r\nApr 12 18:04:07 samsung-ubuntu systemd[1]: docker.service: Start request repeated too quickly.\r\nApr 12 18:04:07 samsung-ubuntu systemd[1]: Failed to start Docker Application Container Engine.\r\nApr 12 18:04:07 samsung-ubuntu systemd[1]: docker.service: Unit entered failed state.\r\nApr 12 18:04:07 samsung-ubuntu systemd[1]: docker.service: Failed with result 'exit-code'.\r\n# journalctl  -xe | grep docker\r\n...\r\nApr 12 18:04:06 samsung-ubuntu dockerd[4214]: time=\"2018-04-12T18:04:06.851298800+02:00\" level=debug msg=\"Allocating IPv6 pools for network bridge (d99104233f728344ddea2082c93e18ef4f007843bd9f9d7f5ac63873a4d63444)\"\r\nApr 12 18:04:06 samsung-ubuntu dockerd[4214]: time=\"2018-04-12T18:04:06.851308891+02:00\" level=debug msg=\"RequestPool(LocalDefault, , , map[], true)\"\r\nApr 12 18:04:06 samsung-ubuntu dockerd[4214]: time=\"2018-04-12T18:04:06.851325514+02:00\" level=debug msg=\"releasing IPv4 pools from network bridge (d99104233f728344ddea2082c93e18ef4f007843bd9f9d7f5ac63873a4d63444)\"\r\nApr 12 18:04:06 samsung-ubuntu dockerd[4214]: time=\"2018-04-12T18:04:06.851337352+02:00\" level=debug msg=\"ReleaseAddress(LocalDefault/172.22.0.0/16, 172.22.0.1)\"\r\nApr 12 18:04:06 samsung-ubuntu dockerd[4214]: time=\"2018-04-12T18:04:06.851349376+02:00\" level=debug msg=\"Received set for ordinal 1, start 0, end 0, any false, release true, serial:false curr:0 \\n\"\r\nApr 12 18:04:06 samsung-ubuntu dockerd[4214]: time=\"2018-04-12T18:04:06.851359070+02:00\" level=debug msg=\"ReleasePool(LocalDefault/172.22.0.0/16)\"\r\nApr 12 18:04:06 samsung-ubuntu dockerd[4214]: time=\"2018-04-12T18:04:06.851376394+02:00\" level=debug msg=\"daemon configured with a 15 seconds minimum shutdown timeout\"\r\nApr 12 18:04:06 samsung-ubuntu dockerd[4214]: time=\"2018-04-12T18:04:06.851388030+02:00\" level=debug msg=\"start clean shutdown of all containers with a 15 seconds timeout...\"\r\nApr 12 18:04:06 samsung-ubuntu dockerd[4214]: time=\"2018-04-12T18:04:06.854603740+02:00\" level=debug msg=\"Cleaning up old mountid : start.\"\r\nApr 12 18:04:06 samsung-ubuntu dockerd[4214]: time=\"2018-04-12T18:04:06.855030449+02:00\" level=debug msg=\"Cleaning up old mountid : done.\"\r\nApr 12 18:04:06 samsung-ubuntu dockerd[4214]: Error starting daemon: Error initializing network controller: Error creating default \"bridge\" network: could not find an available, non-overlapping IPv6 address pool among the defaults to assign to the network\r\nApr 12 18:04:06 samsung-ubuntu systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE\r\n```"},"comment":{"url":"https://api.github.com/repos/docker/distribution/issues/comments/384705944","html_url":"https://github.com/docker/distribution/issues/2571#issuecomment-384705944","issue_url":"https://api.github.com/repos/docker/distribution/issues/2571","id":384705944,"user":{"login":"Alkarex","id":1008324,"avatar_url":"https://avatars0.githubusercontent.com/u/1008324?v=4","gravatar_id":"","url":"https://api.github.com/users/Alkarex","html_url":"https://github.com/Alkarex","followers_url":"https://api.github.com/users/Alkarex/followers","following_url":"https://api.github.com/users/Alkarex/following{/other_user}","gists_url":"https://api.github.com/users/Alkarex/gists{/gist_id}","starred_url":"https://api.github.com/users/Alkarex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alkarex/subscriptions","organizations_url":"https://api.github.com/users/Alkarex/orgs","repos_url":"https://api.github.com/users/Alkarex/repos","events_url":"https://api.github.com/users/Alkarex/events{/privacy}","received_events_url":"https://api.github.com/users/Alkarex/received_events","type":"User","site_admin":false},"created_at":"2018-04-26T16:31:09Z","updated_at":"2018-04-26T16:31:09Z","author_association":"NONE","body":"https://github.com/moby/moby/issues/36954"}}
{"actor":{"display_login":"Alkarex"}}