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

利用vSphere调整各台虚拟机后,重新启动mesos,让其启动docker,并为每个container分配cpu和mem,但每次都有一个TASK_LOST.

查看mesos slave的log,发现下面的error:

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

解决办法:

1. Log into Ubuntu as a user with sudo privileges.
2. Edit the /etc/default/grub file.
3. Set the GRUB_CMDLINE_LINUX value as follows:
   GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"
4. Save and close the file.
5. Update GRUB.
   $ sudo update-grub
6. Reboot your system.

参考:  https://docs.docker.com/installation/ubuntulinux/

原文地址:https://www.cnblogs.com/lasclocker/p/4624896.html