Can we use podman as well as docker for self-host
Currently self-hosting works on and checks for dependancies on docker. But I use podman instead of docker, so can we add alternative containerisation tool?
```
# ── Step 1: dependency check ────────────────────────────────────────
log "checking dependencies"
need docker
need curl
need openssl
docker compose version >/dev/null 2>&1 \
|| die "docker compose plugin not found — install docker desktop or 'docker-compose-plugin'"
```
to change to something like:
```
# Detect container runtime (docker or podman)
if [ -z "$PUTER_CONTAINER_CMD" ]; then
if command -v docker >/dev/null 2>&1; then
PUTER_CONTAINER_CMD=docker
elif command -v podman >/dev/null 2>&1; then
PUTER_CONTAINER_CMD=podman
else
die "neither docker nor podman found — install one of them and try again"
fi
fi
log "using container runtime: $PUTER_CONTAINER_CMD"
# Verify the chosen container command has compose support
$PUTER_CONTAINER_CMD compose version >/dev/null 2>&1 \
|| die "$PUTER_CONTAINER_CMD compose plugin not found — install the compose plugin and try again"
need curl
need openssl
```
关闭于 2026-06-14 3 条评论