{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/23072","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/23072/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/23072/comments","events_url":"https://api.github.com/repos/docker/docker/issues/23072/events","html_url":"https://github.com/docker/docker/pull/23072","id":157296965,"number":23072,"title":"Set --state-dir on containerd","user":{"login":"dnephin","id":442180,"avatar_url":"https://avatars.githubusercontent.com/u/442180?v=3","gravatar_id":"","url":"https://api.github.com/users/dnephin","html_url":"https://github.com/dnephin","followers_url":"https://api.github.com/users/dnephin/followers","following_url":"https://api.github.com/users/dnephin/following{/other_user}","gists_url":"https://api.github.com/users/dnephin/gists{/gist_id}","starred_url":"https://api.github.com/users/dnephin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dnephin/subscriptions","organizations_url":"https://api.github.com/users/dnephin/orgs","repos_url":"https://api.github.com/users/dnephin/repos","events_url":"https://api.github.com/users/dnephin/events{/privacy}","received_events_url":"https://api.github.com/users/dnephin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/status/2-code-review","name":"status/2-code-review","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-27T21:51:59Z","updated_at":"2016-05-31T16:36:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/23072","html_url":"https://github.com/docker/docker/pull/23072","diff_url":"https://github.com/docker/docker/pull/23072.diff","patch_url":"https://github.com/docker/docker/pull/23072.patch"},"body":"I was trying to run an instance of the daemon with something like this:\r\n\r\n```\r\ndockerd \\\r\n    -g /tmp/dockerdev \\\r\n    --exec-root=/tmp/dockerdev \\\r\n   ...\r\n```\r\n\r\nand I got the following error\r\n\r\n```\r\nFATA[0000] open /run/containerd/events.log: permission denied\r\n```\r\n\r\nwhich was unexpected, because I was setting all the paths to `/tmp/dockerdev`.\r\n\r\n**What I did**\r\n\r\nSet the `containerd` `--start-dir` arg to the `stateDir` so that the `events.log` ends up in the path under the docker exec root. After I made this change I was able to run the second instance of the daemon."},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/222745708","html_url":"https://github.com/docker/docker/pull/23072#issuecomment-222745708","issue_url":"https://api.github.com/repos/docker/docker/issues/23072","id":222745708,"user":{"login":"tonistiigi","id":585223,"avatar_url":"https://avatars.githubusercontent.com/u/585223?v=3","gravatar_id":"","url":"https://api.github.com/users/tonistiigi","html_url":"https://github.com/tonistiigi","followers_url":"https://api.github.com/users/tonistiigi/followers","following_url":"https://api.github.com/users/tonistiigi/following{/other_user}","gists_url":"https://api.github.com/users/tonistiigi/gists{/gist_id}","starred_url":"https://api.github.com/users/tonistiigi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonistiigi/subscriptions","organizations_url":"https://api.github.com/users/tonistiigi/orgs","repos_url":"https://api.github.com/users/tonistiigi/repos","events_url":"https://api.github.com/users/tonistiigi/events{/privacy}","received_events_url":"https://api.github.com/users/tonistiigi/received_events","type":"User","site_admin":false},"created_at":"2016-05-31T16:36:12Z","updated_at":"2016-05-31T16:36:12Z","body":"LGTM"}}
{"actor":{"display_login":"tonistiigi"}}