From e87cc87857d3d4c8f925211324f81f8979be1402 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Fri, 28 Aug 2026 13:10:20 +0200 Subject: [PATCH] podman: pull portainer images before systemd unit start to avoid start timeout (#16831) --- ct/podman.sh | 4 +++- install/podman-install.sh | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ct/podman.sh b/ct/podman.sh index 217600192..cd35e63c0 100644 --- a/ct/podman.sh +++ b/ct/podman.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash -source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main" +_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func" +source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func") # Copyright (c) 2021-2026 tteck # Author: tteck (tteckster) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE diff --git a/install/podman-install.sh b/install/podman-install.sh index 9cad8662c..6e1cd58c2 100644 --- a/install/podman-install.sh +++ b/install/podman-install.sh @@ -51,6 +51,7 @@ read -r -p "${TAB3}Would you like to add Portainer? " prompt if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then msg_info "Installing Portainer $PORTAINER_LATEST_VERSION" podman volume create portainer_data >/dev/null + $STD podman pull docker.io/portainer/portainer-ce:latest cat </etc/containers/systemd/portainer.container [Unit] Description=Portainer Container @@ -77,6 +78,7 @@ else read -r -p "${TAB3}Would you like to add the Portainer Agent? " prompt if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then msg_info "Installing Portainer agent $PORTAINER_AGENT_LATEST_VERSION" + $STD podman pull docker.io/portainer/agent:latest cat </etc/containers/systemd/portainer-agent.container [Unit] Description=Portainer Agent Container