Report this

What is the reason for this report?

Setting kernel command line

Posted on August 15, 2014

Hello all,

I’m trying to set memory limits on Docker containers running within my (Ubuntu) droplet. When I do this currently, I get the following warning:

WARNING: Your kernel does not support swap limit capabilities. Limitation discarded.

The fix for this is to set “cgroup_enable=memory swapaccount=1” in the command-line of the kernel (source).

I’ve updated /etc/default/grub to include these in my GRUB_CMDLINE_LINUX and have run update-grub; I can see the appropriate entries in the generated configuration in /boot. However, when I reboot the machine:

$ cat /proc/cmdline
root=LABEL=DOROOT ro

Is there anything I can do to set the command line parameters myself?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

What is 4 Years later, wehre Kernels are maintained in the droplets, should I add the options to grub.cfg? How I detect the kernel with compiled in capabilities. I installed a Docker one click droplet and detect a 4.4.0-109 Kernel, the normal ubuntu 16.04 have a 4.4.0-116 Kernel ?

Hi!

Due to the virtualization technology that we use, the kernel running on the droplet must match what is being run on the hypervisor level. Boot parameters must be passed on the hypervisor. If you open a support ticket, the team should be able to get you squared away.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.