{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/15095","labels_url":"https://api.github.com/repos/docker/docker/issues/15095/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/15095/comments","events_url":"https://api.github.com/repos/docker/docker/issues/15095/events","html_url":"https://github.com/docker/docker/issues/15095","id":97757006,"number":15095,"title":"Docker looks up in wrong directory for cgroups settings","user":{"login":"ashishbista","id":1227084,"avatar_url":"https://avatars.githubusercontent.com/u/1227084?v=3","gravatar_id":"","url":"https://api.github.com/users/ashishbista","html_url":"https://github.com/ashishbista","followers_url":"https://api.github.com/users/ashishbista/followers","following_url":"https://api.github.com/users/ashishbista/following{/other_user}","gists_url":"https://api.github.com/users/ashishbista/gists{/gist_id}","starred_url":"https://api.github.com/users/ashishbista/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashishbista/subscriptions","organizations_url":"https://api.github.com/users/ashishbista/orgs","repos_url":"https://api.github.com/users/ashishbista/repos","events_url":"https://api.github.com/users/ashishbista/events{/privacy}","received_events_url":"https://api.github.com/users/ashishbista/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/system/lxc","name":"system/lxc","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-28T17:21:02Z","updated_at":"2015-07-28T18:36:59Z","closed_at":null,"body":"I'm trying to limit the memory size for containers. I'm running Docker with `exec-driver lxc`. It looks like Docker is looking in the wrong directory for cgroups settings.\r\n\r\nDocker: `sudo docker -d -e lxc `\r\n\r\n`docker version`: \r\n```\r\nClient version: 1.7.1\r\nClient API version: 1.19\r\nGo version (client): go1.4.2\r\nGit commit (client): 786b29d\r\nOS/Arch (client): linux/amd64\r\nServer version: 1.7.1\r\nServer API version: 1.19\r\nGo version (server): go1.4.2\r\nGit commit (server): 786b29d\r\nOS/Arch (server): linux/amd64\r\n```\r\n\r\n`docker info`:\r\n```\r\nContainers: 22\r\nImages: 53\r\nStorage Driver: aufs\r\n Root Dir: /var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 98\r\n Dirperm1 Supported: false\r\nExecution Driver: lxc-1.0.7\r\nLogging Driver: json-file\r\nKernel Version: 3.13.0-59-generic\r\nOperating System: Ubuntu 14.04.2 LTS\r\nCPUs: 4\r\nTotal Memory: 7.447 GiB\r\nName: poisonta\r\nID: X2NK:ZIP4:TOIC:BDAR:ZEFE:ROE6:NQ3X:H2SJ:RYPQ:YCLG:KEYU:7X2Z\r\n```\r\n\r\n`uname -a`:\r\n```\r\nLinux poisonta 3.13.0-59-generic #98-Ubuntu SMP Fri Jul 24 21:05:26 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux\r\n```\r\n\r\nServer Type: Physical\r\n\r\nCommand used to create a container: ` sudo docker run --lxc-conf=\"memory.limit_in_bytes = 10000\" -i -t ubuntu_trusty /bin/bash`\r\n\r\nLog: \r\n```\r\nWARN[0275] Your kernel does not support OOM notifications: open /sys/fs/cgroup/memory/user/1000.user/c2.session/lxc/0ef985ea04fc85871f4f77b19250371523274cef43ce813e986cf24770e4d6e4/memory.oom_control: no such file or directory \r\nINFO[0275] POST /v1.19/containers/0ef985ea04fc85871f4f77b19250371523274cef43ce813e986cf24770e4d6e4/resize?h=50&w=186 \r\nERRO[0275] Handler for POST /containers/{name:.*}/resize returned error: Cannot resize container 0ef985ea04fc85871f4f77b19250371523274cef43ce813e986cf24770e4d6e4, container is not running \r\nERRO[0275] HTTP Error                                    err=Cannot resize container 0ef985ea04fc85871f4f77b19250371523274cef43ce813e986cf24770e4d6e4, container is not running statusCode=500\r\n```\r\n\r\nSteps to reproduce the issue:\r\n1. Run Docker daemon: `sudo docker -d -e lxc`\r\n2. Create container: `sudo docker run --lxc-conf=\"memory.limit_in_bytes = 10000\" -i -t ubuntu_trusty /bin/bash`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/125707582","html_url":"https://github.com/docker/docker/issues/15095#issuecomment-125707582","issue_url":"https://api.github.com/repos/docker/docker/issues/15095","id":125707582,"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":"2015-07-28T18:36:59Z","updated_at":"2015-07-28T18:36:59Z","body":"ping @ashahab-altiscale is this your area, or should I ping someone else? :-)"}}