Forrest logo
tool overview
On this page you find all important commands for the CLI tool podman. If the command you are looking for is missing please ask our AI.

podman

Podman is a command-line tool used for managing containers in a Linux environment. It is an alternative to Docker, providing a lightweight container runtime that allows users to build, run, and manage containers without requiring a daemon process.

Unlike Docker, Podman does not require root privileges to run containers, which enhances security and simplifies the container management process. It uses Linux namespaces and cgroups for isolation and resource management, providing a secure and efficient container runtime environment.

With Podman, users can pull images from container registries, build images from Dockerfiles, or even create images manually. The tool supports a wide range of container image formats, including Docker, OCI, and more.

Podman can run containers in various modes, such as standalone containers, managed pods, and systemd integration. It also supports managing container networking, volumes, and environment variables.

Podman provides features for managing containers at scale, including the ability to run and manage multiple containers simultaneously using various tools, such as Podman Compose or Kubernetes. It also allows users to manage container storage, networking, and other resources efficiently.

Additionally, Podman offers a range of command-line options and flags for controlling container behavior, troubleshooting, and debugging. It supports various output formats, logging options, and container lifecycle management features.

Podman is widely adopted in the Linux container ecosystem and has an active community that contributes to its development and enhancement. It integrates well with other container tools and technologies, making it a versatile choice for container management in Linux environments.

List of commands for podman:

  • podman-build:tldr:2f992 podman-build: Create an image without using any previously cached images.
    $ podman build --no-cache ${path-to-directory}
    try on your machine
    explain this command
  • podman-build:tldr:383ed podman-build: Create an image suppressing all output.
    $ podman build --quiet ${path-to-directory}
    try on your machine
    explain this command
  • podman-build:tldr:5dc24 podman-build: Create an image from a non-standard file.
    $ podman build --file ${Containerfile-different} .
    try on your machine
    explain this command
  • podman-build:tldr:e0825 podman-build: Create an image using a `Dockerfile` or `Containerfile` in the specified directory.
    $ podman build ${path-to-directory}
    try on your machine
    explain this command
  • podman-build:tldr:f03e0 podman-build: Create an image with a specified tag.
    $ podman build --tag ${image_name:version} ${path-to-directory}
    try on your machine
    explain this command
  • podman-image:tldr:1e9b3 podman-image: Show the history of a local Docker image.
    $ podman image history ${image}
    try on your machine
    explain this command
  • podman-image:tldr:2c8bc podman-image: Delete unused local Docker images.
    $ podman image prune
    try on your machine
    explain this command
  • podman-image:tldr:96417 podman-image: List local Docker images.
    $ podman image ls
    try on your machine
    explain this command
  • podman-image:tldr:d6f1c podman-image: Delete all unused images (not just those without a tag).
    $ podman image prune --all
    try on your machine
    explain this command
  • podman-images:tldr:0870c podman-images: List all Podman images not used by any container.
    $ podman images --filter dangling=true
    try on your machine
    explain this command
  • podman-images:tldr:538d9 podman-images: List all Podman images including intermediates.
    $ podman images --all
    try on your machine
    explain this command
  • podman-images:tldr:7965f podman-images: List all Podman images.
    $ podman images
    try on your machine
    explain this command
  • podman-images:tldr:836b3 podman-images: List images that contain a substring in their name.
    $ podman images "${select}"
    try on your machine
    explain this command
  • podman-images:tldr:de0b9 podman-images: List the output in quiet mode (only numeric IDs).
    $ podman images --quiet
    try on your machine
    explain this command
  • podman-machine:tldr:1a06d podman-machine: Connect to a running machine via SSH.
    $ podman machine ssh ${name}
    try on your machine
    explain this command
  • podman-machine:tldr:2c353 podman-machine: Create a new machine with a specific name.
    $ podman machine init ${name}
    try on your machine
    explain this command
  • podman-machine:tldr:3583a podman-machine: Create a new machine with different resources.
    $ podman machine init --cpus=${4} --memory=${4096} --disk-size=${50}
    try on your machine
    explain this command
  • podman-machine:tldr:6b996 podman-machine: List existing machines.
    $ podman machine ls
    try on your machine
    explain this command
  • podman-machine:tldr:6fd63 podman-machine: Inspect information about a machine.
    $ podman machine inspect ${name}
    try on your machine
    explain this command
  • podman-machine:tldr:94bc3 podman-machine: Start or stop a machine.
    $ podman machine ${select} ${name}
    try on your machine
    explain this command
  • podman-machine:tldr:a2b7c podman-machine: Create a new default machine.
    $ podman machine init
    try on your machine
    explain this command
  • podman-ps:tldr:337be podman-ps: List currently running podman containers.
    $ podman ps
    try on your machine
    explain this command
  • podman-ps:tldr:4ca3a podman-ps: Filter containers by status (created, running, removing, paused, exited and dead).
    $ podman ps --filter="status=${status}"
    try on your machine
    explain this command
  • podman-ps:tldr:5d9bc podman-ps: Show the latest created container (includes all states).
    $ podman ps --latest
    try on your machine
    explain this command
  • podman-ps:tldr:84012 podman-ps: Filter containers that share a given image as an ancestor.
    $ podman ps --filter "ancestor=${image}:${tag}"
    try on your machine
    explain this command
  • podman-ps:tldr:8a172 podman-ps: List all podman containers (running and stopped).
    $ podman ps --all
    try on your machine
    explain this command
  • podman-ps:tldr:cc17e podman-ps: Filter containers that mount a specific volume or have a volume mounted in a specific path.
    $ podman ps --filter="volume=${path-to-directory}" --format "table ${-ID}\t${-Image}\t${-Names}\t${-Mounts}"
    try on your machine
    explain this command
  • podman-ps:tldr:d144c podman-ps: Filter containers that contain a substring in their name.
    $ podman ps --filter="name=${name}"
    try on your machine
    explain this command
  • podman-ps:tldr:d7464 podman-ps: Filter containers by exit status code.
    $ podman ps --all --filter="exited=${code}"
    try on your machine
    explain this command
  • podman-rmi:tldr:0bd82 podman-rmi: Display help.
    $ podman rmi
    try on your machine
    explain this command
  • podman-rmi:tldr:2026d podman-rmi: Force remove an image.
    $ podman rmi --force ${image}
    try on your machine
    explain this command
  • podman-rmi:tldr:7af7d podman-rmi: Remove an image without deleting untagged parents.
    $ podman rmi --no-prune ${image}
    try on your machine
    explain this command
  • podman-rmi:tldr:d2537 podman-rmi: Remove one or more images given their names.
    $ podman rmi ${image:tag} ${image2:tag} ${---}
    try on your machine
    explain this command
  • podman-run:tldr:004cb podman-run: Run command in a new container with passed environment variables.
    $ podman run --env '${variable}=${value}' --env ${variable} ${image:tag} ${command}
    try on your machine
    explain this command
  • podman-run:tldr:0d94c podman-run: Run command in a new container from a tagged image.
    $ podman run ${image:tag} ${command}
    try on your machine
    explain this command
  • podman-run:tldr:66709 podman-run: Run command in a new container connecting it to a network.
    $ podman run --network ${network} ${image:tag}
    try on your machine
    explain this command
  • podman-run:tldr:88f2e podman-run: Run command in a new container with bind mounted volumes.
    $ podman run --volume ${-path-to-host_path}:${-path-to-container_path} ${image:tag} ${command}
    try on your machine
    explain this command
  • podman-run:tldr:a19ab podman-run: Run command in a one-off container in interactive mode and pseudo-TTY.
    $ podman run --rm --interactive --tty ${image:tag} ${command}
    try on your machine
    explain this command
  • podman-run:tldr:c1af4 podman-run: Run command in a new container in background and display its ID.
    $ podman run --detach ${image:tag} ${command}
    try on your machine
    explain this command
  • podman-run:tldr:e7bd9 podman-run: Run command in a new container overwriting the entrypoint of the image.
    $ podman run --entrypoint ${command} ${image:tag}
    try on your machine
    explain this command
  • podman-run:tldr:edf2a podman-run: Run command in a new container with published ports.
    $ podman run --publish ${host_port}:${container_port} ${image:tag} ${command}
    try on your machine
    explain this command
  • podman:tldr:1eff4 podman: Pull an image from a registry (defaults to Docker Hub).
    $ podman pull ${image}
    try on your machine
    explain this command
  • podman:tldr:50188 podman: Remove a stopped container.
    $ podman rm ${container_name}
    try on your machine
    explain this command
  • podman:tldr:6f711 podman: Display the logs of one or more containers and follow log output.
    $ podman logs --follow ${container_name} ${container_id}
    try on your machine
    explain this command
  • podman:tldr:77de4 podman: Open a shell inside an already running container.
    $ podman exec --interactive --tty ${container_name} ${sh}
    try on your machine
    explain this command
  • podman:tldr:a9dca podman: Start or stop an existing container.
    $ podman ${select} ${container_name}
    try on your machine
    explain this command
  • podman:tldr:bdd97 podman: Create a container from an image, with a custom name.
    $ podman run --name ${container_name} ${image}
    try on your machine
    explain this command
tool overview