@Exagone313@share.elouworld.org
2026-09-29 08:19 UTC
@Crell@phpc.social @outofcontrol@phpc.social Yes, but you need to enable the Podman socket and set an environment variable and it's not documented enough. No need to install podman compose.
systemctl --user enable --now podman.socket
export DOCKER_HOST="unix://${XDG_RUNTIME_DIR}/podman/podman.sock"
Note that there are a few differences, e.g. in network isolation, and that as your user you can't publish reserved ports. But for development stuff it is nice.
Note that root in your container is equivalent to your user on the host, so you need to use images that do not change the default user if you want to share the same uid:gid as your host user on the files.
If you need to "become root" in your terminal, without running a container, you can use "podman unshare". You can then also access a container rootfs with: cd "$(podman mount your-container)"
Replies (1)
-
@Exagone313@share.elouworld.org 2026-09-29 08:23
@Crell@phpc.social @outofcontrol@phpc.social For production stuff I recommend using Quadlet which integrates Podman into systemd units: https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html