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

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.

  • I run this command sudoedit/etc/default/grub and edit the grub file by GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1" after that update-grub and reboot.But now also i got the same warning – user238511 Feb 6 '14 at 14:41
  • 1
    Check your dmesg output, particularly the kernel command line that the arguments were passed to the kernel by grub. I had to edit GRUB_CMDLINE_LINUX_DEFAULT instead. – Tim Potter Jun 18 '14 at 5:32
  • how could I check this config is worked or not? – Hoai-Thu Vuong Jun 14 '16 at 8:03

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.