fix(edge-scripts): add podman auto onboarding script [BE-12327] (#1333)

This commit is contained in:
Chaim Lev-Ari
2025-11-04 14:21:37 +02:00
committed by GitHub
parent ae53de42df
commit 34a7d75e10
4 changed files with 454 additions and 2 deletions
@@ -88,7 +88,7 @@ docker run -d \\
`;
}
function buildLinuxPodmanCommand(
export function buildLinuxPodmanCommand(
agentVersion: string,
edgeKey: string,
properties: ScriptFormValues,
@@ -113,7 +113,9 @@ function buildLinuxPodmanCommand(
edgeIdGenerator ? `PORTAINER_EDGE_ID=$(${edgeIdGenerator}) \n\n` : ''
}\
sudo systemctl enable --now podman.socket
sudo podman volume create portainer
sudo podman volume create portainer_agent_data
sudo podman run -d \\
-v /run/podman/podman.sock:/var/run/docker.sock \\
-v /var/lib/containers/storage/volumes:/var/lib/docker/volumes \\