This role fixes the
WARNING: No swap limit support
warning in docker info
by reconfiguring grub
.
The docker documentation mentions this issue and describes how to solve it by reconfiguring grub.
TLDR:
This role updates /etc/defaults/grub
to inclunde
GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"
None
See defaults/main.yml
.
None
- hosts: docker_hosts
roles:
- role: mtze.docker-swap-grub
vars:
- hosts: docker_hosts
roles:
- role: mtze.docker-swap-grub
vars:
allow_reboot: false
MIT