You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having problems setting memory limits on my containers.
If I specify both --memory and --memory-swap then I receive an error message and the container is left behind.
$ docker run --memory=500M --memory-swap=500M -ti ubuntu:latest
Error response from daemon: Cannot start container 97e39572858eaf04f48bac465ebe4a121503700b3699ef8752d9175141bd5611: [8] System error: open /sys/fs/cgroup/memory/init.scope/system.slice/docker-97e39572858eaf04f48bac465ebe4a121503700b3699ef8752d9175141bd5611.scope/memory.memsw.limit_in_bytes: no such file or directory
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
97e39572858e ubuntu:latest "/bin/bash" 8 seconds ago Created stupefied_sammet
I took a look. Inside /sys/fs/cgroup/memory/init.scope/ there is no system.slice folder.
there is however a system.slice folder in /sys/fs/cgroup/memory/
If I try
$ docker run --memory=500M -ti ubuntu:latest
then the container starts but I see this warning in Docker's logs
Oct 18 15:55:48 dan-sputnik docker[7070]: time="2015-10-18T15:55:48.989117494+01:00" level=warning msg="Your kernel does not support OOM notifications: open /sys/fs/cgroup/memory/init.scope/system.slice/docker-cd0d56a244162b406f9cad46c81950643c9b8143ddb6e3410901539bab92161c.scope/memory.oom_control: no such file or directory"
Setting these memory limits used to work about 4 months ago when I was running on older version of Docker, Linux kernel and system-d. I guessing one of these has broken something.
$ docker version
Client:
Version: 1.8.3
API version: 1.20
Go version: go1.5.1
Git commit: f4bf5c7-dirty
Built: Wed Oct 14 11:17:02 UTC 2015
OS/Arch: linux/amd64
Server:
Version: 1.8.3
API version: 1.20
Go version: go1.5.1
Git commit: f4bf5c7-dirty
Built: Wed Oct 14 11:17:02 UTC 2015
OS/Arch: linux/amd64
The text was updated successfully, but these errors were encountered:
I'm having problems setting memory limits on my containers.
If I specify both
--memory
and--memory-swap
then I receive an error message and the container is left behind.I took a look. Inside
/sys/fs/cgroup/memory/init.scope/
there is nosystem.slice
folder.there is however a
system.slice
folder in/sys/fs/cgroup/memory/
If I try
then the container starts but I see this warning in Docker's logs
Setting these memory limits used to work about 4 months ago when I was running on older version of Docker, Linux kernel and system-d. I guessing one of these has broken something.
I'm running on Arch Linux with systemd 227-1
The text was updated successfully, but these errors were encountered: