From 52a5ec535e5a578e8450c94ac19a4e8681b88140 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Sun, 25 Jun 2023 12:08:23 +0100 Subject: [PATCH] podman: increase startup timeout to not fail on slow container pulls --- cookbooks/podman/resources/service.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/cookbooks/podman/resources/service.rb b/cookbooks/podman/resources/service.rb index a6013e385..6ce5da35e 100644 --- a/cookbooks/podman/resources/service.rb +++ b/cookbooks/podman/resources/service.rb @@ -36,6 +36,7 @@ action :create do 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 -- 2.43.2