I have Debian 8.5 on DigitalOcean with a kernel version 3.16.7-ckt25-2

I'm trying to enable cgroups memory controller for Docker. I add cgroup_enable=memory swapaccount=1 to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub, run update-grub, reboot the server, but it doesn't work.

Output of mount | grep cgroup | grep mem shows nothing when it should show something like: cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)

Works fine on AWS with the same kernel version.


It turned out that with a new version (8.5) of Debian DigitalOcean add a file to /etc/default/grub.d/ where GRUB_CMDLINE_LINUX_DEFAULT was redefined.

  • thank you man, different os, different provider, but same solution. Ubuntu 18.04 in my case. 2 days of work :) – Mascarpone May 18 '18 at 7:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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