podman allows to run Docker (and non-Docker) containers without any demons or root privileges. That means without
sudo or asking your administrator to add you to
docker group. It creates new user process that is isolated by Linux kernel itself.
On Fedora you can install
podman with standard way
dnf install podman, on Ubuntu there is an initiative to pack podman as a snap.
podman requires container image to run. Official Docker images are fine.
✗ podman run snapcore/snapcraft:beta snapcraft version Locale not set! Snapcraft will temporarily use C.UTF-8 snapcraft, version 3.0.1
podman command line is fully compatible with Docker. To make something useful out if it,
cd into directory with you project and run
snapcraft image with current directory (
$PWD) mounted as
✗ podman run -v $PWD:/src:Z -w /src snapcore/snapcraft:beta snapcraft
:Z is needed for write access with SELinux on Fedora.
-w changes current working directory inside container.
To be continued… (why you’d want to run
snapcraft from container - “all your base” or “heavy (virtual) machines vs lightweight container builds”).