[dockers] Default container autorestart feature to "enabled" for all except database (#4853)

Set the default auto_restart state to "enabled" in init_cfg.json for all containers except database

Signed-off-by: Yong Zhao <yozhao@microsoft.com>
This commit is contained in:
yozhao101 2020-07-15 11:49:14 -07:00 committed by GitHub
parent de51b9e424
commit 83738fca2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@
{%- for container in ["bgp", "database", "dhcp_relay", "lldp", "nat", "pmon", "radv", "restapi", "sflow",
"snmp", "swss", "syncd", "teamd", "telemetry"] %}
"{{container}}": {
"auto_restart": "disabled",
"auto_restart": "{% if container == "database" %}disabled{% else %}enabled{% endif %}",
"high_mem_alert": "disabled"
}{% if not loop.last %},{% endif -%}
{% endfor %}