{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/20688","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/20688/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/20688/comments","events_url":"https://api.github.com/repos/docker/docker/issues/20688/events","html_url":"https://github.com/docker/docker/issues/20688","id":136307594,"number":20688,"title":"container reports host memory when started with memory constraints","user":{"login":"thechile","id":3511504,"avatar_url":"https://avatars.githubusercontent.com/u/3511504?v=3","gravatar_id":"","url":"https://api.github.com/users/thechile","html_url":"https://github.com/thechile","followers_url":"https://api.github.com/users/thechile/followers","following_url":"https://api.github.com/users/thechile/following{/other_user}","gists_url":"https://api.github.com/users/thechile/gists{/gist_id}","starred_url":"https://api.github.com/users/thechile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thechile/subscriptions","organizations_url":"https://api.github.com/users/thechile/orgs","repos_url":"https://api.github.com/users/thechile/repos","events_url":"https://api.github.com/users/thechile/events{/privacy}","received_events_url":"https://api.github.com/users/thechile/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-25T07:37:05Z","updated_at":"2016-02-25T10:38:08Z","closed_at":null,"body":"Docker version 1.10.2, build c3959b1\r\n\r\nAs per this post from 2014 http://fabiokung.com/2014/03/13/memory-inside-linux-containers/ is there any plans for Docker to address the problem where containers started with memory limits such as `docker run -m 300M --memory-swap -1 -t -i ubuntu /bin/bash` still see the hosts memory ? Such as LXCFS.  \r\n\r\nThere are various programs that on start will use a percentage of the available memory to calculate cache sizes or on disk file size. If you have a 64GB host and start a container with 512M limit then this will be really bad. Some programs offer the option to overwrite the automatic calculations but not all. It also implies you know about this behavior in the first place. \r\n\r\nAre there any plans or roadmap where this is discussed ? \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/188718055","html_url":"https://github.com/docker/docker/issues/20688#issuecomment-188718055","issue_url":"https://api.github.com/repos/docker/docker/issues/20688","id":188718055,"user":{"login":"thaJeztah","id":1804568,"avatar_url":"https://avatars.githubusercontent.com/u/1804568?v=3","gravatar_id":"","url":"https://api.github.com/users/thaJeztah","html_url":"https://github.com/thaJeztah","followers_url":"https://api.github.com/users/thaJeztah/followers","following_url":"https://api.github.com/users/thaJeztah/following{/other_user}","gists_url":"https://api.github.com/users/thaJeztah/gists{/gist_id}","starred_url":"https://api.github.com/users/thaJeztah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaJeztah/subscriptions","organizations_url":"https://api.github.com/users/thaJeztah/orgs","repos_url":"https://api.github.com/users/thaJeztah/repos","events_url":"https://api.github.com/users/thaJeztah/events{/privacy}","received_events_url":"https://api.github.com/users/thaJeztah/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T10:38:07Z","updated_at":"2016-02-25T10:38:07Z","body":"The linked article explains that this is a kernel limitation, and that the workarounds are probably *worse* than the current situation. I don't think there's much we can do here, unless it is changed in the kernel"}}