Ubuntu – How does kernel support swap limit

containerkernel

When i run docker info command on my ubuntu 13.04 with kernel 3.8.0-19-generic

i got a warning

no swap limit support

How can i solve this?

docker info

Containers: 10
Images: 37    
Driver: aufs    
Root Dir: /var/lib/docker/aufs
Dirs: 59

WARNING: No swap limit support

Best Answer

You need a couple of arguments to be passed to the Kernel at boot.

Run sudoedit /etc/default/grub in a terminal and edit the GRUB_CMDLINE_LINUX line so it looks like this:

GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1" 

Save and exit and then run sudo update-grub and reboot. That should be enough.

Related Question