liveBook · Manning

Command-line interface

As explained in Podman in Action: Secure, rootless containers for Kubernetes, microservices, and more

A command-line interface is a text-based interface for invoking software operations by entering commands.

A command-line interface is a text-based interface for invoking software operations by entering commands. Podman’s CLI deliberately matches the Docker CLI, making Docker workflows transferable with minimal changes. section 1.3.5 section 2.0

Use the Podman CLI to:

  • Manage containers with run, stop, start, ps, inspect, rm, and commit. section 2.4
  • Manage images and registries with pull, push, login, rmi, and build. section 2.4
  • Reuse Docker commands by aliasing docker to podman or installing podman-docker. section 1.3.5
Figure 1.10 Tweet about “alias docker=’podman’”

An example of the docker=podman alias illustrates transparent CLI replacement. section 1.3.5

How Podman in Action: Secure, rootless containers for Kubernetes, microservices, and more covers it

How deep it goes
Defines the interface and demonstrates operational commands, while deferring advanced features such as image mounting.
Examples
Demonstrates podman run, ps, inspect, build, push, and the docker=podman alias.
What it assumes
Assumes Podman 4.1 or later is installed and lets experienced Docker users transfer familiar CLI knowledge.
What you can do after
Operate containers and images, build images, and share them through registries using Podman’s CLI.
How it connects
Connects Docker CLI compatibility with containers, images, container registries, and automated image builds.

Also explained in

Compare how 9 books explain command-line interface →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Podman in Action: Secure, rootless containers for Kubernetes, microservices, and more. The section links point to the parts of the book it draws on.