Container Commands

Summary

This note is a quick reference for the container-related command layer used around Fedora Atomic. It is meant to help you remember command names and common syntax quickly, while the full explanations stay in the related guides.

When to use this note

  • you remember the concept but need the command quickly
  • you want a short reminder of common syntax
  • you do not need the full walkthrough from the guides

RPM-ostree

CommandPurpose
rpm-ostree statusshow deployment state, layered packages, and rollback information
rpm-ostree rollbackroll back to the previous deployment
rpm -q firefoxcheck where a package comes from on the system

Flatpak

CommandPurpose
flatpak listshow installed Flatpak applications and runtimes

Toolbox

CommandPurpose
toolbox listshow existing toolboxes
toolbox create devcreate a toolbox called dev
toolbox enter deventer the toolbox shell

Podman

CommandPurpose
podman search <name>search container images in registries
podman pull <name>download an image locally
podman imagesshow local images
podman psshow running containers only
podman ps -ashow all containers, including stopped ones
podman inspect <container>show detailed container metadata
podman run -d ubunturun a container in detached mode
podman stop <container>stop a running container
podman rm -f <container>force-remove a container
podman rmi ubunturemove an image
podman system dfshow container-related disk usage

Example sequences

Check the Atomic and toolbox/container layers quickly

rpm-ostree status
toolbox list
podman ps -a
flatpak list

Pull and run a quick container test

podman pull ubuntu
podman run -d ubuntu
podman ps

Notes

  • toolbox is the easier daily workflow for development environments
  • podman is the better fit for direct container and service control
  • flatpak belongs to the GUI application layer
  • rpm-ostree belongs to the host system layer