Podman: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
"Podman is a daemonless container engine for developing, managing, and running OCI Containers on your Linux System." (Cited from [https://podman.io/ Podman])
"Podman is a daemonless container engine for developing, managing, and running OCI Containers on your Linux System." (Cited from [https://podman.io/ Podman])
== Display the log of the container ==
* {{ kbd | key=<nowiki>docker logs [OPTIONS] CONTAINER</nowiki>}} <ref>[https://docs.docker.com/engine/reference/commandline/logs/ docker logs | Docker Documentation]</ref>
* {{ kbd | key=<nowiki>podman logs [options] container [container…]</nowiki>}} e.g {{ kbd | key=<nowiki>podman logs <ID_OR_NAME></nowiki>}} <ref>[https://docs.podman.io/en/latest/markdown/podman-logs.1.html podman-logs — Podman documentation]</ref>


== List images ==
== List images ==

Revision as of 15:31, 22 August 2022

"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