{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/flannel/issues/246","labels_url":"https://api.github.com/repos/coreos/flannel/issues/246/labels{/name}","comments_url":"https://api.github.com/repos/coreos/flannel/issues/246/comments","events_url":"https://api.github.com/repos/coreos/flannel/issues/246/events","html_url":"https://github.com/coreos/flannel/issues/246","id":94153242,"number":246,"title":"docker seems to start before flannel sets the network so docker0 remains 172","user":{"login":"jon-shanks","id":3877018,"avatar_url":"https://avatars.githubusercontent.com/u/3877018?v=3","gravatar_id":"","url":"https://api.github.com/users/jon-shanks","html_url":"https://github.com/jon-shanks","followers_url":"https://api.github.com/users/jon-shanks/followers","following_url":"https://api.github.com/users/jon-shanks/following{/other_user}","gists_url":"https://api.github.com/users/jon-shanks/gists{/gist_id}","starred_url":"https://api.github.com/users/jon-shanks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jon-shanks/subscriptions","organizations_url":"https://api.github.com/users/jon-shanks/orgs","repos_url":"https://api.github.com/users/jon-shanks/repos","events_url":"https://api.github.com/users/jon-shanks/events{/privacy}","received_events_url":"https://api.github.com/users/jon-shanks/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-09T21:14:03Z","updated_at":"2015-07-10T14:13:03Z","closed_at":"2015-07-10T14:13:03Z","body":"For some reason, docker initiates and sets the networking for the interface before flannel runs and sets the /run/flannel_docker_opts.env . Despite reboots for some reason it never manages to pick up the correct network:\r\n\r\nI can see docker.service sources the run flannel docker opts:\r\nEnvironmentFile=-/run/flannel_docker_opts.env\r\n\r\nHowever \r\nip addr show dev docker0\r\n3: docker0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default\r\n    link/ether 2a:e4:02:28:63:1e brd ff:ff:ff:ff:ff:ff\r\n    inet 172.17.42.1/16 scope global docker0\r\n\r\ncat /run/flannel_docker_opts.env\r\nDOCKER_OPT_BIP=\"--bip=10.102.20.1/24\"\r\nDOCKER_OPT_IPMASQ=\"--ip-masq=false\"\r\nDOCKER_OPT_MTU=\"--mtu=1450\"\r\n\r\nThe link has to be downed and the service restarted to place this on the network. I've set the drop in for the network set for etcd for flannel to Type=notify though the flannel service is set  to notify anyway\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/coreos/flannel/issues/comments/120418793","html_url":"https://github.com/coreos/flannel/issues/246#issuecomment-120418793","issue_url":"https://api.github.com/repos/coreos/flannel/issues/246","id":120418793,"user":{"login":"jon-shanks","id":3877018,"avatar_url":"https://avatars.githubusercontent.com/u/3877018?v=3","gravatar_id":"","url":"https://api.github.com/users/jon-shanks","html_url":"https://github.com/jon-shanks","followers_url":"https://api.github.com/users/jon-shanks/followers","following_url":"https://api.github.com/users/jon-shanks/following{/other_user}","gists_url":"https://api.github.com/users/jon-shanks/gists{/gist_id}","starred_url":"https://api.github.com/users/jon-shanks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jon-shanks/subscriptions","organizations_url":"https://api.github.com/users/jon-shanks/orgs","repos_url":"https://api.github.com/users/jon-shanks/repos","events_url":"https://api.github.com/users/jon-shanks/events{/privacy}","received_events_url":"https://api.github.com/users/jon-shanks/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T14:13:03Z","updated_at":"2015-07-10T14:13:03Z","body":"I'm going to close this issue and let smana raise one separately to relate it as the issue i have is now different to what i've put in and that issue isn't an issue for me right now"}}