Enabling memory and swap accounting for Docker on opensuse 42.2

原创
2017/03/29 11:35
阅读数 931

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
展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
0 评论
0 收藏
0
分享
返回顶部
顶部