1. 程式人生 > >【轉】Docker run 記憶體限制報錯

【轉】Docker run 記憶體限制報錯

#docker run --memory 2G

報錯:WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.

suse解決方法:

編輯/etc/default/grub
設定如下:
GRUB_CMDLINE_LINUX=“cgroup_enable=memory swapaccount=1”
然後執行:grub2-mkconfig -o /boot/grub2/grub.cfg
然後重啟系統,就OK了