Commit c3dd4b65 authored by ale's avatar ale

docker: Wait only 10 seconds for container shutdown

This prevents a race between podman and systemd on the 60 seconds
mark, which would cause systemd to kill podman while it's cleaning
up the container, leaving things in a corrupted state.
parent 41b488d6
Pipeline #6011 passed with stages
in 10 minutes and 14 seconds
......@@ -8,7 +8,7 @@ Requires=docker.service
[Service]
EnvironmentFile=-/etc/default/{{ item.service }}-{{ item.container.name }}
ExecStart=/usr/lib/float/docker/run-{{ item.service }}-{{ item.container.name }}.sh
ExecStop=/usr/bin/docker stop --time 60 {{ item.service }}-{{ item.container.name }}
ExecStop=/usr/bin/docker stop {{ item.service }}-{{ item.container.name }}
TimeoutStopSec=60
Restart=always
RestartSec=3s
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment