On 10/1/19 7:05 AM, Felicia wrote:
I found two things to solve this issue:

1) edit /etc/default/grub and edit the line GRUB_CMDLINE_LINUX to contain:

     GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"

2) Run the following script:

     https://github.com/moby/moby/issues/8791#issuecomment-60874893


Congrats! For your information, I ran /usr/share/docker.io/contrib/check-config.sh on my system. To compare with the lines you mentioned, here's what I get:


- CONFIG_NF_NAT_IPV4: missing
- CONFIG_NF_NAT_NEEDED: missing
- CONFIG_CGROUP_HUGETLB: missing
    - CONFIG_AUFS_FS: missing

- cgroup hierarchy: properly mounted [/sys/fs/cgroup]

- CONFIG_CGROUPS: enabled
- CONFIG_CGROUP_CPUACCT: enabled
- CONFIG_CGROUP_DEVICE: enabled
- CONFIG_CGROUP_FREEZER: enabled
- CONFIG_CGROUP_SCHED: enabled

- CONFIG_LEGACY_VSYSCALL_NONE: enabled

The important point, as you noted, is the cgroup part. It' surprising that it's not enabled for you, and that you need to enable it in the grub kernel cmdline. There should be no need to do that.

Are you running a custom kernel or something?

For example, what's the output of:

$ apt policy linux-image-amd64
linux-image-amd64:
  Installed: 5.2+107
  Candidate: 5.2+107
  Version table:
 *** 5.2+107 500
        500 http://deb.debian.org/debian sid/main amd64 Packages
        100 /var/lib/dpkg/status
     5.2+106~bpo10+1 900
        100 http://deb.debian.org/debian buster-backports/main amd64 Packages
     4.19+105+deb10u1 990
        990 http://deb.debian.org/debian buster/main amd64 Packages


Regards,

  Arnaud

Reply via email to