Podman: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
No edit summary
Line 5: Line 5:
* {{ kbd | key=podman images [options] [image]}} <ref>[https://docs.podman.io/en/latest/markdown/podman-images.1.html podman-images — Podman documentation]</ref>
* {{ kbd | key=podman images [options] [image]}} <ref>[https://docs.podman.io/en/latest/markdown/podman-images.1.html podman-images — Podman documentation]</ref>


== List running containers ==
== List containers ==
List running containers
* {{ kbd | key=<nowiki>docker container ls [OPTIONS]</nowiki>}} <ref>[https://docs.docker.com/engine/reference/commandline/container_ls/ docker container ls | Docker Documentation]</ref>
* {{ kbd | key=<nowiki>docker container ls [OPTIONS]</nowiki>}} <ref>[https://docs.docker.com/engine/reference/commandline/container_ls/ docker container ls | Docker Documentation]</ref>
* {{ kbd | key=podman ps}} <ref>[https://docs.podman.io/en/latest/markdown/podman-ps.1.html podman-ps — Podman documentation]</ref>
* {{ kbd | key=podman ps}} <ref>[https://docs.podman.io/en/latest/markdown/podman-ps.1.html podman-ps — Podman documentation]</ref>
List all containers
* {{ kbd | key=<nowiki>docker container ls -a</nowiki>}}
* {{ kbd | key=podman ps -a}}


== Build an image from a Dockerfile ==
== Build an image from a Dockerfile ==

Revision as of 15:03, 22 August 2022

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

List images

  • docker image ls [OPTIONS] [REPOSITORY[:TAG]] [1]
  • podman images [options] [image] [2]

List containers

List running containers

  • docker container ls [OPTIONS] [3]
  • podman ps [4]

List all containers

  • docker container ls -a
  • podman ps -a

Build an image from a Dockerfile

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


References