Docker : activer les restrictions RAM et swap

Boris HUISGEN September 20, 2015

administration docker

# vim /etc/default/grub

GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"

# update-grub

# vim /etc/default/docker

DOCKER_OPTS="--exec-opt native.cgroupdriver=cgroupfs"

# shutdown -r now

See also

Debian : fix startup Docker 1.7 et kernel 4.1
Read more
Docker : supprimer tous les containers à l’arrêt
Read more
Debian : fix crash Netbeans 8
Read more