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
Thanks for the submission @kandahk
Would you like to put this in a PR? This looks like a good addition
only note would be maybe we'd need to support windows as well?
@Salazareo podman on windows wraps WSL anyways, so I don't believe so. Additionally, podman has a docker compatible interface anyways, so it already works. I actually use podman when testing our docker support! All that's needed is podman-docker available here https://packages.debian.org/trixie/podman-docker. Is there any distribution that doesn't provide the podman-docker package?
closing from inactivity, but happy to accept addition there if PR opened