Skip to content

Commit

Permalink
docker: docker_storage_containerd_snapshotter should be boolean (#1761)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <berendt@osism.tech>
  • Loading branch information
berendt authored Feb 17, 2025
1 parent aca9e64 commit acc2444
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion roles/docker/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions roles/docker/templates/daemon.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}",
Expand Down

0 comments on commit acc2444

Please sign in to comment.