Interview Prep/Docker/Security, rootless, Podman and containerd

`podman-compose`/`docker compose` against Podman socket fails: `Cannot connect to the Docker daemon at unix:///var/run/docker.sock`.

IntermediateTroubleshootingSecurity, rootless, Podman and containerd
Answer

Likely causes → Podman API socket isn't enabled or DOCKER_HOST isn't set.

Diagnose → systemctl --user status podman.socket; ls $XDG_RUNTIME_DIR/podman/podman.sock.

Fix →

systemctl --user enable --now podman.socket
export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/podman/podman.sock

Prevent → Set DOCKER_HOST in the shell profile.

All Docker questions Roadmap: Docker & containers

More on Security, rootless, Podman and containerd