Skip to content

Commit

Permalink
podman: increase startup timeout to not fail on slow container pulls
Browse files Browse the repository at this point in the history
  • Loading branch information
Firefishy committed Jun 25, 2023
1 parent c1b15c5 commit 52a5ec5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cookbooks/podman/resources/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
exec_start "/usr/bin/podman run --cidfile=%t/%n.ctr-id --cgroups=no-conmon --userns=auto --label=io.containers.autoupdate=registry --network=slirp4netns:mtu=1500 #{publish_options} --rm --sdnotify=conmon --detach --replace --name=%N #{new_resource.image}"
exec_stop "/usr/bin/podman stop --ignore --time=10 --cidfile=%t/%n.ctr-id"
exec_stop_post "/usr/bin/podman rm --force --ignore --cidfile=%t/%n.ctr-id"
timeout_start_sec 180
timeout_stop_sec 70
restart "on-failure"
end
Expand Down

0 comments on commit 52a5ec5

Please sign in to comment.