Podman: Difference between revisions
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
List containers
List running containers
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
- ↑ docker logs | Docker Documentation
- ↑ podman-logs — Podman documentation
- ↑ docker image ls | Docker Documentation
- ↑ podman-images — Podman documentation
- ↑ docker container ls | Docker Documentation
- ↑ podman-ps — Podman documentation
- ↑ docker build | Docker Documentation
- ↑ podman-build — Podman documentation