系统集成Docker

请教一下,docker info提示WARNING: No swap limit support,的意思?

请教一下各位,我在虚拟机(ubuntu15.04,64bit,内核4.0)装完docker后,用docker info ,显示:WARNING: No swap limit support,这句话有什么特别的意思吗?如果是我的虚拟机配置问题,那又需要作哪些改动呢。
root@localhost:~# docker info
Containers: 0
Images: 0
Storage Driver: devicemapper
Pool Name: docker-252:0-657575-pool
Pool Blocksize: 65.54 kB
Backing Filesystem: extfs
Data file: /dev/loop0
Metadata file: /dev/loop1
Data Space Used: 305.7 MB
Data Space Total: 107.4 GB
Data Space Available: 14.27 GB
Metadata Space Used: 729.1 kB
Metadata Space Total: 2.147 GB
Metadata Space Available: 2.147 GB
Udev Sync Supported: false
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
Library Version: 1.02.82-git (2013-10-04)
Execution Driver: native-0.2
Kernel Version: 4.0.0-040000-generic
Operating System: Ubuntu 15.04
CPUs: 4
Total Memory: 1.937 GiB
Name: localhost
ID: VNWE:SZ46:IZGD:FX26:NRKQ:CU72:GE2E:OVYD:52D7:UA5P:LQ46:WFBB
WARNING: No swap limit support
参与8

5同行回答

dl528888dl528888系统运维工程师游戏公司
这个默认官方给予解决方法了,地址是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 suppo...显示全部
这个默认官方给予解决方法了,地址是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), do the following.

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.
收起
互联网服务 · 2015-05-12
浏览22426

提问者

feitat
系统工程师ss
擅长领域: Docker云计算容器引擎

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2015-05-12
  • 关注会员:1 人
  • 问题浏览:30310
  • 最近回答:2015-05-12
  • X社区推广