diff --git a/roles/docker/defaults/main.yml b/roles/docker/defaults/main.yml index 3dce533c9..990d5623d 100644 --- a/roles/docker/defaults/main.yml +++ b/roles/docker/defaults/main.yml @@ -98,7 +98,7 @@ docker_registry_mirrors: [] # storage driver docker_storage_driver: overlay2 -docker_storage_containerd_snapshotter: "false" +docker_storage_containerd_snapshotter: false ########################## # storage block device diff --git a/roles/docker/templates/daemon.json.j2 b/roles/docker/templates/daemon.json.j2 index af928f505..7a7fb9cbf 100644 --- a/roles/docker/templates/daemon.json.j2 +++ b/roles/docker/templates/daemon.json.j2 @@ -58,9 +58,9 @@ }, {% endif %} "registry-mirrors": [{% for mirror in docker_registry_mirrors %}"{{ mirror }}"{% if not loop.last %}, {% endif %}{% endfor %}], -{% if docker_storage_containerd_snapshotter == 'true' %} +{% if docker_storage_containerd_snapshotter | bool %} "features": { - "containerd-snapshotter": {{ docker_storage_containerd_snapshotter }} + "containerd-snapshotter": true }, {% else %} "storage-driver": "{{ docker_storage_driver }}",