{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/bugs/issues/1088","labels_url":"https://api.github.com/repos/coreos/bugs/issues/1088/labels{/name}","comments_url":"https://api.github.com/repos/coreos/bugs/issues/1088/comments","events_url":"https://api.github.com/repos/coreos/bugs/issues/1088/events","html_url":"https://github.com/coreos/bugs/issues/1088","id":128169331,"number":1088,"title":"docker starts before var-lib-docker.mount with ext4 at reboot","user":{"login":"arthur-c","id":463392,"avatar_url":"https://avatars.githubusercontent.com/u/463392?v=3","gravatar_id":"","url":"https://api.github.com/users/arthur-c","html_url":"https://github.com/arthur-c","followers_url":"https://api.github.com/users/arthur-c/followers","following_url":"https://api.github.com/users/arthur-c/following{/other_user}","gists_url":"https://api.github.com/users/arthur-c/gists{/gist_id}","starred_url":"https://api.github.com/users/arthur-c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthur-c/subscriptions","organizations_url":"https://api.github.com/users/arthur-c/orgs","repos_url":"https://api.github.com/users/arthur-c/repos","events_url":"https://api.github.com/users/arthur-c/events{/privacy}","received_events_url":"https://api.github.com/users/arthur-c/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/coreos/bugs/labels/component/cloud-init","name":"component/cloud-init","color":"0052cc"},{"url":"https://api.github.com/repos/coreos/bugs/labels/kind/question","name":"kind/question","color":"c7def8"},{"url":"https://api.github.com/repos/coreos/bugs/labels/team/os","name":"team/os","color":"ffffff"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-22T14:41:14Z","updated_at":"2016-01-30T01:32:39Z","closed_at":null,"body":"Hi,\r\n\r\nI'm using /var/lib/docker on a volume in ext4 for few nodes and after their reboot with the 835.10.0 stable update my units did not restart. Docker started before the mount unit then the mount unit overwrite /var/lib/docker (despite Before=docker.service).\r\nI can reproduce the problem easily. It never fails while bootsraping a node, only at reboot, each time:\r\n\r\n```\r\nvar-lib-docker.mount: Directory /var/lib/docker to mount over is not empty, mounting anyway.\r\ndocker[874]: open /var/lib/docker/repositories-overlay: no such file or directory\r\n```\r\n\r\nI can't reproduce with btfrs, docker always wait the mount.\r\n\r\nRequiresMountsFor=/var/lib/docker in a drop-in for docker.service doesn't solve the problem.\r\n\r\nMore details (cloud-config, log with ext4 at reboot, log with btrfs): \r\nhttps://gist.github.com/arthur-c/9aec3cb157014169299b\r\n\r\nNodes are on aws with ebs storage.\r\n"},"comment":{"url":"https://api.github.com/repos/coreos/bugs/issues/comments/177042897","html_url":"https://github.com/coreos/bugs/issues/1088#issuecomment-177042897","issue_url":"https://api.github.com/repos/coreos/bugs/issues/1088","id":177042897,"user":{"login":"arthur-c","id":463392,"avatar_url":"https://avatars.githubusercontent.com/u/463392?v=3","gravatar_id":"","url":"https://api.github.com/users/arthur-c","html_url":"https://github.com/arthur-c","followers_url":"https://api.github.com/users/arthur-c/followers","following_url":"https://api.github.com/users/arthur-c/following{/other_user}","gists_url":"https://api.github.com/users/arthur-c/gists{/gist_id}","starred_url":"https://api.github.com/users/arthur-c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthur-c/subscriptions","organizations_url":"https://api.github.com/users/arthur-c/orgs","repos_url":"https://api.github.com/users/arthur-c/repos","events_url":"https://api.github.com/users/arthur-c/events{/privacy}","received_events_url":"https://api.github.com/users/arthur-c/received_events","type":"User","site_admin":false},"created_at":"2016-01-30T01:32:39Z","updated_at":"2016-01-30T01:32:39Z","body":"Anyhow, https://coreos.com/os/docs/latest/mounting-storage.html#use-attached-storage-for-docker is buggy at the moment. "}}