Do not use docker stop --time
(deprecated in Docker v28 in favor of --timeout
or just -t
)
`-t` works on both old and new Docker versions, so it's best to use that.
This commit is contained in:
@ -10,7 +10,7 @@ DefaultDependencies=no
|
||||
[Service]
|
||||
Type=simple
|
||||
Environment="HOME={{ devture_systemd_docker_base_systemd_unit_home_path }}"
|
||||
ExecStartPre=-{{ devture_systemd_docker_base_host_command_docker }} stop --time={{ devture_systemd_docker_base_container_stop_grace_time_seconds }} %n
|
||||
ExecStartPre=-{{ devture_systemd_docker_base_host_command_docker }} stop -t {{ devture_systemd_docker_base_container_stop_grace_time_seconds }} %n
|
||||
ExecStartPre=-{{ devture_systemd_docker_base_host_command_docker }} rm %n
|
||||
|
||||
ExecStart={{ devture_systemd_docker_base_host_command_docker }} run --rm --name %n \
|
||||
@ -33,7 +33,7 @@ ExecStartPost={{ matrix_host_command_sleep }} 3
|
||||
|
||||
TimeoutStartSec=5min
|
||||
ExecStop=-{{ devture_systemd_docker_base_host_command_docker }} stop %n
|
||||
ExecStop=-{{ devture_systemd_docker_base_host_command_docker }} stop --time={{ devture_systemd_docker_base_container_stop_grace_time_seconds }} %n
|
||||
ExecStop=-{{ devture_systemd_docker_base_host_command_docker }} stop -t {{ devture_systemd_docker_base_container_stop_grace_time_seconds }} %n
|
||||
ExecStop=-{{ devture_systemd_docker_base_host_command_docker }} rm %n
|
||||
ExecStop=-{{ matrix_host_command_fusermount }} -u {{ matrix_s3_media_store_path }}
|
||||
Restart=always
|
||||
|
Reference in New Issue
Block a user