docker info提示WARNING: No swap limit support

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xiaoxiao133/article/details/87908161

参考链接:
1、http://www.talkwithtrend.com/Question/123541?order=asc

解决方法:
Doucker 提示:Your kernel does not support swap limit capabilities

这个默认官方给予解决方法了,地址是https://docs.docker.com/installation/ubuntulinux/

    When users run Docker, they may see these messages when working with an image:
    WARNING: Your kernel does not support cgroup swap limit. WARNING: Your
    kernel does not support swap limit capabilities. Limitation discarded.
    To prevent these messages, enable memory and swap accounting on your system. To enable these on system using GNU GRUB (GNU GRand Unified Bootloader),

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

猜你喜欢

转载自blog.csdn.net/xiaoxiao133/article/details/87908161