Skip to content

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

@kandahk

Description

@kandahk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions