kayobe/ansible/roles/docker/templates/daemon.json.j2
Kevin Tibi 8ba28c2df3 Support docker live-restore option
Change-Id: Ifc17d132322f84e92655c7ee45dd3566a32ef4b2
Story: 2001783
Task: 12496
2018-04-18 18:46:34 +02:00

17 lines
603 B
Django/Jinja

{
"storage-driver": "{% if docker_storage_driver == 'devicemapper' %}devicemapper{% else %}overlay{% endif %}",
{% if docker_daemon_mtu %}
"mtu": {{ docker_daemon_mtu }},
{% endif %}
{% if docker_daemon_live_restore %}
"live-restore": {{ docker_daemon_live_restore | to_json }},
{% endif %}
"storage-opts": [
{% if docker_storage_driver == 'devicemapper' %}
"dm.thinpooldev=/dev/mapper/{{ docker_storage_volume_group | replace('-', '--') }}-{{ docker_storage_volume_thinpool | replace('-', '--') }}",
"dm.use_deferred_removal=true",
"dm.use_deferred_deletion=true"
{% endif %}
]
}