mtze.docker_swap_grub
Role Name
This role addresses the
WARNING: No swap limit support
warning shown in docker info
by changing the configuration of grub
.
The docker documentation highlights this issue and provides instructions for fixing it by reconfiguring grub.
In short:
This role modifies /etc/defaults/grub
to include
GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"
Requirements
None
Role Variables
Refer to defaults/main.yml
.
Dependencies
None
Example Playbook
To update grub and reboot
- hosts: docker_hosts
roles:
- role: mtze.docker-swap-grub
vars:
To update grub without rebooting
- hosts: docker_hosts
roles:
- role: mtze.docker-swap-grub
vars:
allow_reboot: false
License
MIT
Informazioni sul progetto
Configure GRUB to fix dockers - WARNING: No swap limit support
Installa
ansible-galaxy install mtze.docker_swap_grub
Licenza
Unknown
Download
545
Proprietario