Skip to content
Search Fedora

    Browse this documentation

    Fedora containers and rootless

    Building a container workflow on Fedora starts not with memorising commands but with seeing what the official list actually contains — Fedora’s container docs do not always match habits brought in from elsewhere. This page follows “list → engine → rootless and SELinux → starting images → division of labour with EL”.

    The toolchain list: what the official docs give you

    Section titled “The toolchain list: what the official docs give you”

    The Tools and Ecosystem lists in the official container docs name Podman, Buildah, Skopeo, OKD, CRI-O and Kubernetes; rootless and SELinux usage follows that docs area and the SELinux docs, while installing tools and checking versions goes back to dnf.

    That list is worth walking item by item against your workflow:

    • Running containers: Podman — if your muscle memory comes from docker, first work out which tool in this list covers the equivalent operation instead of assuming the flags map one to one;
    • Building images: Buildah — aimed at the build stage, a different tool from running containers;
    • Moving and inspecting images: Skopeo — copying between registries and inspecting image metadata;
    • Runtime and platform layer: CRI-O, Kubernetes, and OKD which is also on the list;
    • Immutable system shapes: Fedora Silverblue and Fedora CoreOS are also on the list — systems organised around the container idea, covered in Atomic desktops and immutable systems.

    Engine choice: how Podman relates to docker

    Section titled “Engine choice: how Podman relates to docker”

    The engine on the official list is Podman, not docker. That does not forbid other tools; it means during troubleshooting, first confirm which chain you are on:

    • Similar commands are not similar behaviour: image, volume, network and permission defaults may differ; check item by item before migrating scripts;
    • Different daemon models: one relies on a resident service, the other can start on demand — this directly affects how you write systemd units;
    • Team conventions: if both habits coexist, at least write down “which engine runs production workloads” instead of relying on verbal defaults.

    rootless and SELinux: two places to check the docs first

    Section titled “rootless and SELinux: two places to check the docs first”

    Do not work from memory on these two: the official container docs cover tools and usage, while SELinux state and modes have their own page. When you hit permission denials or a container cannot see files after a mount, the right order is check those two places first, then change configuration.

    • rootless: containers run as your normal user rather than as root; the exact limits and usage are in the official container docs;
    • SELinux: label problems when containers share files with the host belong to SELinux; how to check state and switch modes is on the official SELinux page;
    • Do not troubleshoot by disabling security mechanisms: setting SELinux to permissive or off turns one problem into two.

    Starting images: Base, Minimal Base and Toolbox

    Section titled “Starting images: Base, Minimal Base and Toolbox”

    The official download page lists three kinds of container image: Fedora Container Base, Fedora Container Minimal Base and Fedora Container Toolbox; the thinner the starting point, the more work you do inside with dnf to add dependencies.

    • Base: the general starting point, suitable for most build and run scenarios;
    • Minimal Base: a smaller starting point, for size-sensitive cases where you know which dependencies you will add;
    • Container Toolbox: the kind aimed at development environments, covered in Isolated development with Toolbox;
    • Do not build your own starting point: starting from an official distribution image is easier to maintain and easier to explain to colleagues than assembling a root filesystem from scratch.

    Containers themselves are portable, but toolchains and documentation follow the distribution:

    • Validating new runtimes: Fedora’s cadence differs from EL’s, which makes it a good place to get a new toolchain or build flow working before carrying the conclusions back to EL;
    • Long-running workloads: put what must stay stable for a long time on a distribution with a longer life cycle, and keep development and validation on the Fedora side; see release cadence and support window for the cadence difference;
    • Server trade-offs: which services suit Fedora and which do not is covered in Using Fedora as a server;
    • Do not treat commands from the two sides as equivalent: differences in lists, defaults and policy are all things to check against the official docs.
    • “The docker command works, so both sides are the same”: the engine on the official list is Podman; argument and default differences need separate confirmation;
    • “rootless is a degraded, limited mode”: it is the normal way to run, and the limits are whatever the official docs say, not guesses;
    • “All images are roughly the same, pick any starting point”: the three kinds on the official list represent different size and maintenance trade-offs;
    • “When containers misbehave, turn SELinux off first”: that only leaves you facing two problems at once.

    Pull, run once, inspect — these three cover most daily use:

    Terminal window
    podman pull registry.fedoraproject.org/fedora-minimal:45
    podman run --rm registry.fedoraproject.org/fedora-minimal:45 cat /etc/fedora-release
    podman images
    REPOSITORY TAG IMAGE ID CREATED SIZE
    registry.fedoraproject.org/fedora-minimal 45 c6d2b36ac58a 7 hours ago 146 MB

    Building and moving images (the Buildah and Skopeo entries on the list):

    Terminal window
    buildah from fedora-minimal:45
    buildah run <container> dnf -y install nginx
    buildah commit <container> my-nginx:latest
    skopeo inspect docker://registry.fedoraproject.org/fedora-minimal:45 | head -10
    skopeo copy docker://<src> docker://<dst>

    Find out which mode you are in:

    Terminal window
    podman info --format "{{.Host.Security.Rootless}} {{.Store.GraphRoot}}"
    true /home/labuser/.local/share/containers/storage

    rootless storage lives in your home directory, rootful in /var/lib/containers/storage — “I pulled it but cannot see it” is usually a mode mismatch.

    GoalCommandNote
    run once and removepodman run --rm <image> <cmd>debugging and verification
    keep it runningsystemctl --user start <unit> (Quadlet)the recommended route
    build an imagebuildahseparate from running
    move an imageskopeo copydoes not land in local storage