{"action":"created","issue":{"url":"https://api.github.com/repos/google/cadvisor/issues/1062","labels_url":"https://api.github.com/repos/google/cadvisor/issues/1062/labels{/name}","comments_url":"https://api.github.com/repos/google/cadvisor/issues/1062/comments","events_url":"https://api.github.com/repos/google/cadvisor/issues/1062/events","html_url":"https://github.com/google/cadvisor/issues/1062","id":127259152,"number":1062,"title":"Incorrect handling of docker container cgroup","user":{"login":"dqminh","id":62707,"avatar_url":"https://avatars.githubusercontent.com/u/62707?v=3","gravatar_id":"","url":"https://api.github.com/users/dqminh","html_url":"https://github.com/dqminh","followers_url":"https://api.github.com/users/dqminh/followers","following_url":"https://api.github.com/users/dqminh/following{/other_user}","gists_url":"https://api.github.com/users/dqminh/gists{/gist_id}","starred_url":"https://api.github.com/users/dqminh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dqminh/subscriptions","organizations_url":"https://api.github.com/users/dqminh/orgs","repos_url":"https://api.github.com/users/dqminh/repos","events_url":"https://api.github.com/users/dqminh/events{/privacy}","received_events_url":"https://api.github.com/users/dqminh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-18T16:14:21Z","updated_at":"2016-01-21T11:21:56Z","closed_at":"2016-01-21T11:21:56Z","body":"cadvisor seems to mishandling the containers cgroup in a systemd host ( at least with 1.10-dev ). Given a host that has the following cgroup layout\r\n\r\n```\r\n/sys/fs/cgroup\r\n-> /cpu\r\n  -> /docker\r\n    -> /2eedaaf84987b9297c012a2acb2aa114029b924d3216562653affba409f16333\r\n  -> /system.slice\r\n-> /systemd\r\n```\r\n\r\nThis is the layout created when we are on a systemd host, but use the fs cgroup and set cgroup-parent to docker, and is the default setting. This setup will make `UseSystemd` returns true, while containers are actually in a different cgroup, so we miss the docker container data.\r\n\r\nPerhaps we should just remove `UseSystemd` as running on a systemd host doesnt mean that it uses the systemd cgroup approach, or maybe docker should tell us which cgroup driver it is using via /info so we can check for it in `UseSystemd`\r\n\r\nping @vishh \r\n"},"comment":{"url":"https://api.github.com/repos/google/cadvisor/issues/comments/173542071","html_url":"https://github.com/google/cadvisor/issues/1062#issuecomment-173542071","issue_url":"https://api.github.com/repos/google/cadvisor/issues/1062","id":173542071,"user":{"login":"dqminh","id":62707,"avatar_url":"https://avatars.githubusercontent.com/u/62707?v=3","gravatar_id":"","url":"https://api.github.com/users/dqminh","html_url":"https://github.com/dqminh","followers_url":"https://api.github.com/users/dqminh/followers","following_url":"https://api.github.com/users/dqminh/following{/other_user}","gists_url":"https://api.github.com/users/dqminh/gists{/gist_id}","starred_url":"https://api.github.com/users/dqminh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dqminh/subscriptions","organizations_url":"https://api.github.com/users/dqminh/orgs","repos_url":"https://api.github.com/users/dqminh/repos","events_url":"https://api.github.com/users/dqminh/events{/privacy}","received_events_url":"https://api.github.com/users/dqminh/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T11:21:56Z","updated_at":"2016-01-21T11:21:56Z","body":"It isnt, but i think it should. There's already a flag to choose the cgroupfs driver explicitly so it makes sense to expose it as the daemon's info. Meanwhile i will close this since we have a workaround."}}