The following error is generated when the Docker host kernel does not take memory and swap accounting into consideration:
WARNING: Your kernel does not support cgroup swap limit.
WARNING: Your kernel does not support swap limit capabilities. Limitation discarded.
To remove this error message perform the following steps:
- Start YaST, and select System > Boot Loader
- Click 'Kernel Parameters'
- Enter the following strings inside of the “Optional Kernel Command Line Parameter”:
cgroup_enable=memory swapaccount=1 - Press the OK button
- Reboot your machine
Alternatively:
- edit the /etc/default/grub file
- Add the following string inside of the GRUB_CMDLINE_LINUX_DEFAULT variable:
cgroup_enable=memory swapaccount=1 - Save the change
- Run: “sudo update-bootloader –refresh”
- Reboot your machine