{"action":"created","issue":{"url":"https://api.github.com/repos/moby/moby/issues/18295","repository_url":"https://api.github.com/repos/moby/moby","labels_url":"https://api.github.com/repos/moby/moby/issues/18295/labels{/name}","comments_url":"https://api.github.com/repos/moby/moby/issues/18295/comments","events_url":"https://api.github.com/repos/moby/moby/issues/18295/events","html_url":"https://github.com/moby/moby/issues/18295","id":119359874,"number":18295,"title":"Cannot allocate memory when starting a container","user":{"login":"sroze","id":804625,"avatar_url":"https://avatars0.githubusercontent.com/u/804625?v=4","gravatar_id":"","url":"https://api.github.com/users/sroze","html_url":"https://github.com/sroze","followers_url":"https://api.github.com/users/sroze/followers","following_url":"https://api.github.com/users/sroze/following{/other_user}","gists_url":"https://api.github.com/users/sroze/gists{/gist_id}","starred_url":"https://api.github.com/users/sroze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sroze/subscriptions","organizations_url":"https://api.github.com/users/sroze/orgs","repos_url":"https://api.github.com/users/sroze/repos","events_url":"https://api.github.com/users/sroze/events{/privacy}","received_events_url":"https://api.github.com/users/sroze/received_events","type":"User","site_admin":false},"labels":[{"id":102727640,"url":"https://api.github.com/repos/moby/moby/labels/area/kernel","name":"area/kernel","color":"fbca04","default":false},{"id":149275894,"url":"https://api.github.com/repos/moby/moby/labels/area/storage/overlay","name":"area/storage/overlay","color":"fbca04","default":false},{"id":375219499,"url":"https://api.github.com/repos/moby/moby/labels/version/1.9","name":"version/1.9","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2015-11-29T13:15:39Z","updated_at":"2017-12-13T21:29:20Z","closed_at":null,"author_association":"NONE","body":"I'm experiencing a strange issue with Fedora 21 and Docker with overlayfs. After a given amount of time (few days), I can't start any new container because I have the following error:\n\n```\n# docker run -d --name=test-nginx nginx\nError response from daemon: chown /var/lib/docker/overlay/ef0ae8ce05c39e4a5831df86fe55a27eaa4bae44014d091953a088e9be0c4523-init/merged/dev: cannot allocate memory\n```\n\nWhen I check the memory usage it looks like first of all there's still available SWAP and that the available memory is far enough:\n\n```\n# free -m\n              total        used        free      shared  buff/cache   available\nMem:          16038        2351         123          75       13563       12876\nSwap:          4093          28        4065\n```\n\nI actually have 61 containers running, but based on the `used` value of `free` it looks like there's something wrong to me. What do you think about that?\n\nThank you very much.\n\n---\n\n`docker version`:\n\n```\nClient:\n Version:      1.9.0\n API version:  1.21\n Go version:   go1.4.2\n Git commit:   76d6bc9\n Built:        Tue Nov  3 18:04:38 UTC 2015\n OS/Arch:      linux/amd64\n\nServer:\n Version:      1.9.0\n API version:  1.21\n Go version:   go1.4.2\n Git commit:   76d6bc9\n Built:        Tue Nov  3 18:04:38 UTC 2015\n OS/Arch:      linux/amd64\n```\n\n`docker info`:\n\n```\nContainers: 539\nImages: 890\nServer Version: 1.9.0\nStorage Driver: overlay\n Backing Filesystem: extfs\nExecution Driver: native-0.2\nLogging Driver: json-file\nKernel Version: 4.1.12-101.fc21.x86_64\nOperating System: Fedora 21 (Twenty One)\nCPUs: 8\nTotal Memory: 15.66 GiB\nName: ns368695.ip-94-23-36.eu\nID: SMYU:RAJG:DY2N:MTWV:2JEG:VJ7I:Y7Y5:5UFO:S7B2:M5ME:34RW:6CKF\n```\n\n`uname -a`:\n\n```\nLinux ns368695.ip-94-23-36.eu 4.1.12-101.fc21.x86_64 #1 SMP Wed Oct 28 15:18:44 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux\n```\n"},"comment":{"url":"https://api.github.com/repos/moby/moby/issues/comments/351530789","html_url":"https://github.com/moby/moby/issues/18295#issuecomment-351530789","issue_url":"https://api.github.com/repos/moby/moby/issues/18295","id":351530789,"user":{"login":"kolyshkin","id":4522509,"avatar_url":"https://avatars0.githubusercontent.com/u/4522509?v=4","gravatar_id":"","url":"https://api.github.com/users/kolyshkin","html_url":"https://github.com/kolyshkin","followers_url":"https://api.github.com/users/kolyshkin/followers","following_url":"https://api.github.com/users/kolyshkin/following{/other_user}","gists_url":"https://api.github.com/users/kolyshkin/gists{/gist_id}","starred_url":"https://api.github.com/users/kolyshkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kolyshkin/subscriptions","organizations_url":"https://api.github.com/users/kolyshkin/orgs","repos_url":"https://api.github.com/users/kolyshkin/repos","events_url":"https://api.github.com/users/kolyshkin/events{/privacy}","received_events_url":"https://api.github.com/users/kolyshkin/received_events","type":"User","site_admin":false},"created_at":"2017-12-13T21:29:20Z","updated_at":"2017-12-13T21:29:20Z","author_association":"CONTRIBUTOR","body":"`kernel-3.10.0-514.el7` (base kernel for RHEL 7.3) already includes the above patch. It is not included in base RHEL 7.2 kernel (`kernel-3.10.0-327.el7`), but is there in latest 7.2 update (`kernel-3.10.0-327.36.3.el7`).\r\n\r\nSo, whoever is experiencing this, and seeing `ovl_copy_xattr` in kernel call trace caused by an allocation failure, need to update their kernel to upstream 4.5+, or RHEL's 7.3+, or latest update of RHEL 7.2.\r\n\r\nI believe the bug can be closed."}}
{"actor":{"display_login":"kolyshkin"}}