{"action":"opened","issue":{"url":"https://api.github.com/repos/spotify/docker-gc/issues/44","labels_url":"https://api.github.com/repos/spotify/docker-gc/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/spotify/docker-gc/issues/44/comments","events_url":"https://api.github.com/repos/spotify/docker-gc/issues/44/events","html_url":"https://github.com/spotify/docker-gc/issues/44","id":101324497,"number":44,"title":"Unexpected behavior of docker-gc","user":{"login":"dalanlan","id":5979704,"avatar_url":"https://avatars.githubusercontent.com/u/5979704?v=3","gravatar_id":"","url":"https://api.github.com/users/dalanlan","html_url":"https://github.com/dalanlan","followers_url":"https://api.github.com/users/dalanlan/followers","following_url":"https://api.github.com/users/dalanlan/following{/other_user}","gists_url":"https://api.github.com/users/dalanlan/gists{/gist_id}","starred_url":"https://api.github.com/users/dalanlan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalanlan/subscriptions","organizations_url":"https://api.github.com/users/dalanlan/orgs","repos_url":"https://api.github.com/users/dalanlan/repos","events_url":"https://api.github.com/users/dalanlan/events{/privacy}","received_events_url":"https://api.github.com/users/dalanlan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-17T02:28:30Z","updated_at":"2015-08-17T02:28:30Z","closed_at":null,"body":"1 Run as a binary \r\nInitialization: no /etc/docker-gc-exclude && /etc/docker-gc-exclude-containers files ( empty `EXCLUDE_FROM_GC` && `EXCLUDE_CONTAINERS_FROM_GC` ENV)\r\nRun: After the execution, i would get a /var/lib/docker-gc/exclude_container_ids file containing all of the existing containers, while /var/lib/docker-gc/exclude_ids is empty, which is not expected.\r\n\r\n\r\n2 Run as a docker container\r\nSimple `docker run --rm -v /var/run/docker.sock:/var/run/docker.sock spotify/docker-gc` is not gonna work.\r\nHow could it possibly function well without accessing `EXCLUDE_FROM_GC` ENV (sort of stuff)? 'Cause it's located in /etc/docker-gc-exclude-containers."}}