WARNING: No swap limit support
發表於 : 2017-08-26 13:41:36
yehlu@x4-640:~$ docker info
Containers: 11
Running: 0
Paused: 0
Stopped: 11
Images: 533
Server Version: 17.06.1-ce
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 563
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 6e23458c129b551d5c9871e5174f6b1b7f6d1170
runc version: 810190ceaa507aa2727d7ae6f4790c76ec150bd2
init version: 949e6fa
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.4.0-21-generic
Operating System: Ubuntu 16.04.3 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
# For full documentation of the options in this file, see:
Total Memory: 15.18GiB
Name: x4-640
ID: 6T5K:PUKP:26MM:WVJQ:Z7OV:MUPJ:SOCH:T4EL:UMNF:KZHK:M3VT:ITUM
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
WARNING: No swap limit support
https://askubuntu.com/questions/417215/ ... swap-limit
15
down vote
You need a couple of arguments to be passed to the Kernel at boot.
Run sudoedit /etc/default/grub in a terminal and edit the GRUB_CMDLINE_LINUX line so it looks like this:
Save and exit and then run sudo update-grub and reboot. That should be enough.
Containers: 11
Running: 0
Paused: 0
Stopped: 11
Images: 533
Server Version: 17.06.1-ce
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 563
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 6e23458c129b551d5c9871e5174f6b1b7f6d1170
runc version: 810190ceaa507aa2727d7ae6f4790c76ec150bd2
init version: 949e6fa
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.4.0-21-generic
Operating System: Ubuntu 16.04.3 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
# For full documentation of the options in this file, see:
Total Memory: 15.18GiB
Name: x4-640
ID: 6T5K:PUKP:26MM:WVJQ:Z7OV:MUPJ:SOCH:T4EL:UMNF:KZHK:M3VT:ITUM
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
WARNING: No swap limit support
https://askubuntu.com/questions/417215/ ... swap-limit
15
down vote
You need a couple of arguments to be passed to the Kernel at boot.
Run sudoedit /etc/default/grub in a terminal and edit the GRUB_CMDLINE_LINUX line so it looks like this:
代碼: 選擇全部
GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"