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.
Division of labour with the EL family
Section titled “Division of labour with the EL family”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.
Common misconceptions
Section titled “Common misconceptions”- “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.
Everyday commands (measured on F45)
Section titled “Everyday commands (measured on F45)”Pull, run once, inspect — these three cover most daily use:
podman pull registry.fedoraproject.org/fedora-minimal:45podman run --rm registry.fedoraproject.org/fedora-minimal:45 cat /etc/fedora-releasepodman imagesREPOSITORY TAG IMAGE ID CREATED SIZEregistry.fedoraproject.org/fedora-minimal 45 c6d2b36ac58a 7 hours ago 146 MBBuilding and moving images (the Buildah and Skopeo entries on the list):
buildah from fedora-minimal:45buildah run <container> dnf -y install nginxbuildah commit <container> my-nginx:latestskopeo inspect docker://registry.fedoraproject.org/fedora-minimal:45 | head -10skopeo copy docker://<src> docker://<dst>Find out which mode you are in:
podman info --format "{{.Host.Security.Rootless}} {{.Store.GraphRoot}}"true /home/labuser/.local/share/containers/storagerootless storage lives in your home directory, rootful in /var/lib/containers/storage — “I pulled it but cannot see it” is usually a mode mismatch.
| Goal | Command | Note |
|---|---|---|
| run once and remove | podman run --rm <image> <cmd> | debugging and verification |
| keep it running | systemctl --user start <unit> (Quadlet) | the recommended route |
| build an image | buildah | separate from running |
| move an image | skopeo copy | does not land in local storage |
Related pages
Section titled “Related pages”- SELinux — the root cause behind container volume label problems
- Isolated development with Toolbox — a lighter container-based development environment
- Fedora cloud images and instances — using Fedora in the cloud
- Atomic desktops and immutable systems — systems organised around containers
- Using Fedora as a server — server trade-offs beyond containers
- Fedora kernel and hardware compatibility — differences at the runtime layer
- Fedora repositories and the package manager — where the tools come from
- Official: Fedora Container Docs — Tools, Changing SELinux states and modes