puter icon indicating copy to clipboard operation
puter copied to clipboard

Can we use podman as well as docker for self-host

Open kandahk opened this issue 6 months ago • 3 comments

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

kandahk avatar May 27 '26 11:05 kandahk

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 avatar May 27 '26 18:05 Salazareo

@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?

ProgrammerIn-wonderland avatar May 29 '26 18:05 ProgrammerIn-wonderland

closing from inactivity, but happy to accept addition there if PR opened

Salazareo avatar Jun 14 '26 06:06 Salazareo