{"action":"opened","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/14403","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/14403/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/14403/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/14403/events","html_url":"https://github.com/kubernetes/kubernetes/issues/14403","id":107863788,"number":14403,"title":"Containerized kubelet cannot manage image garbage collection properly","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-09-23T07:15:43Z","updated_at":"2015-09-23T07:15:43Z","closed_at":null,"body":"```\r\n$ log for kubelet\r\nE0906 09:56:50.896731       1 kubelet.go:737] Image garbage collection failed: non-existent label \"docker-images\"\r\n```\r\n\r\nThe gc problem of cadvisor is because it cannot check the mount point of /var/lib/docker.\r\n```\r\n$ mount info for kubelet\r\nFilesystem partitions: map[/dev/mapper/ubuntu--vg-root:{mountpoint:/rootfs major:252 minor:0} /dev/sda1:{mountpoint:/rootfs/boot major:8 minor:1}]\\n\",\"stream\":\"stderr\",\"time\":\"2015-09-06T09:11:50.726997545Z\"}\r\n```\r\nHence it wont add the required label.\r\n\r\nYet we do have this in the containerized kubelet \r\n```\r\n# cat /proc/self/mountinfo | grep '/var/lib/docker '\r\n275 181 252:0 /var/lib/docker /var/lib/docker ro,relatime - ext4 /dev/mapper/ubuntu--vg-root rw,errors=remount-ro,data=ordered\r\n```\r\nIt's deprecated by https://github.com/google/cadvisor/blob/master/fs/fs.go#L88\r\n'cause we have following already\r\n```\r\n# mount -l | grep '/dev/mapper/ubuntu--vg-root' \r\n/dev/mapper/ubuntu--vg-root on /rootfs type ext4 (ro,relatime,errors=remount-ro,data=ordered)\r\n```\r\nRelated to #4869\r\n/cc @fgrzadkowski"}}