Podman

From LemonWiki共筆
Revision as of 15:31, 22 August 2022 by Unknown user (talk)
Jump to navigation Jump to search

"Podman is a daemonless container engine for developing, managing, and running OCI Containers on your Linux System." (Cited from Podman)

Display the log of the container

  • docker logs [OPTIONS] CONTAINER [1]
  • podman logs [options] container [container…] e.g podman logs <ID_OR_NAME> [2]

List images

  • docker image ls [OPTIONS] [REPOSITORY[:TAG]] [3]
  • podman images [options] [image] [4]

List containers

List running containers

  • docker container ls [OPTIONS] [5]
  • podman ps [6]

List all containers

  • docker container ls -a
  • podman ps -a

Build an image from a Dockerfile

  • docker build [OPTIONS] PATH | URL | - [7]
  • podman build [options] [context] e.g. podman build -f ./Dockerfile [8]


References