Fix docker MTU configuration when no MTU specified
We'll omit the option and use Docker's default value.
This commit is contained in:
parent
d638402838
commit
4751a96cc5
@ -3,4 +3,4 @@
|
|||||||
hosts: docker
|
hosts: docker
|
||||||
roles:
|
roles:
|
||||||
- role: docker
|
- role: docker
|
||||||
docker_daemon_mtu: "{{ external_net_name | net_mtu }}"
|
docker_daemon_mtu: "{{ external_net_name | net_mtu | default }}"
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
{
|
{
|
||||||
"storage-driver": "devicemapper",
|
"storage-driver": "devicemapper",
|
||||||
|
{% if docker_daemon_mtu %}
|
||||||
"mtu": {{ docker_daemon_mtu }},
|
"mtu": {{ docker_daemon_mtu }},
|
||||||
|
{% endif %}
|
||||||
"storage-opts": [
|
"storage-opts": [
|
||||||
"dm.thinpooldev=/dev/mapper/{{ docker_storage_volume_group | replace('-', '--') }}-{{ docker_storage_volume_thinpool | replace('-', '--') }}",
|
"dm.thinpooldev=/dev/mapper/{{ docker_storage_volume_group | replace('-', '--') }}-{{ docker_storage_volume_thinpool | replace('-', '--') }}",
|
||||||
"dm.use_deferred_removal=true",
|
"dm.use_deferred_removal=true",
|
||||||
|
Loading…
Reference in New Issue
Block a user