migrate/podman-to-docker (#92)

podman to docker

Co-authored-by: openhands <openhands@all-hands.dev>
Reviewed-on: https://codeberg.org/johba/harb/pulls/92
This commit is contained in:
johba 2025-11-08 14:08:46 +01:00
parent c2720c35a5
commit 5d71753086
13 changed files with 211 additions and 100 deletions

View file

@ -10,8 +10,8 @@ if ! command -v inotifywait >/dev/null 2>&1; then
exit 1
fi
if ! command -v podman >/dev/null 2>&1; then
echo "Error: podman not found on PATH." >&2
if ! command -v docker >/dev/null 2>&1; then
echo "Error: docker not found on PATH." >&2
exit 1
fi
@ -20,7 +20,7 @@ cd "$ROOT_DIR"
restart_services() {
local missing=0
local running
mapfile -t running < <(podman ps --format '{{.Names}}')
mapfile -t running < <(docker ps --format '{{.Names}}')
for service in "${SERVICES[@]}"; do
local found=1
@ -37,7 +37,7 @@ restart_services() {
continue
fi
if ! podman restart "$service" >/dev/null; then
if ! docker restart "$service" >/dev/null; then
echo "Warning: failed to restart $service" >&2
missing=1
fi