8ba28c2df3
Change-Id: Ifc17d132322f84e92655c7ee45dd3566a32ef4b2 Story: 2001783 Task: 12496
17 lines
603 B
Django/Jinja
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 %}
|
|
]
|
|
}
|