Remove /etc/docker/daemon.json when no Docker options are set anymore

This commit is contained in:
Slavi Pantaleev
2025-03-09 16:03:15 +02:00
parent 5aa8bf9c3d
commit bd073bca74
3 changed files with 31 additions and 0 deletions

View File

@ -21,6 +21,8 @@ matrix_playbook_docker_installation_enabled: true
matrix_playbook_docker_installation_daemon_options: "{{ matrix_playbook_docker_installation_daemon_options_auto | combine(matrix_playbook_docker_installation_daemon_options_custom, recursive=True) }}"
matrix_playbook_docker_installation_daemon_options_file_path: /etc/docker/daemon.json
# Since Docker 27.0.1, Docker daemon options do not need to be changed to enable IPv6 support on the daemon side.
# See: https://docs.docker.com/engine/release-notes/27/#ipv6
# We only enable `ip6tables` and `experimental` for people who explicitly request it (perhaps due to running an old Docker version).