Podman: Difference between revisions

Jump to navigation Jump to search
503 bytes added ,  22 August 2022
no edit summary
No edit summary
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])
== Build an image from a Dockerfile ==
* {{ kbd | key=<nowiki>docker build [OPTIONS] PATH | URL | -</nowiki>}} <ref>[https://docs.docker.com/engine/reference/commandline/build/ docker build | Docker Documentation]</ref>
* {{ kbd | key=podman build [options] [context]}} e.g. {{ kbd | key=podman build -f ./Dockerfile}} <ref>[https://docs.podman.io/en/latest/markdown/podman-build.1.html podman-build — Podman documentation]</ref>


== Display the log of the container ==
== Display the log of the container ==
Line 5: Line 9:
* {{ 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>
* {{ 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 the images ==
* {{ kbd | key=<nowiki>docker image ls [OPTIONS] [REPOSITORY[:TAG]]</nowiki>}} <ref>[https://docs.docker.com/engine/reference/commandline/image_ls/ docker image ls | Docker Documentation]</ref>
* {{ kbd | key=<nowiki>docker image ls [OPTIONS] [REPOSITORY[:TAG]]</nowiki>}} <ref>[https://docs.docker.com/engine/reference/commandline/image_ls/ docker image ls | Docker 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>
* {{ kbd | key=podman images [options] [image]}} <ref>[https://docs.podman.io/en/latest/markdown/podman-images.1.html podman-images — Podman documentation]</ref>


== List containers ==
== List the containers ==
List running 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>
Line 18: Line 22:
* {{ kbd | key=podman ps -a}}
* {{ kbd | key=podman ps -a}}


== Build an image from a Dockerfile ==
== Start the container from image ==
* {{ kbd | key=<nowiki>docker build [OPTIONS] PATH | URL | -</nowiki>}} <ref>[https://docs.docker.com/engine/reference/commandline/build/ docker build | Docker Documentation]</ref>
* {{ kbd | key=<nowiki>docker run [OPTIONS] IMAGE [COMMAND] [ARG...]</nowiki>}} <ref>[https://docs.docker.com/engine/reference/commandline/run/ docker run | Docker Documentation]</ref>
* {{ kbd | key=podman build [options] [context]}} e.g. {{ kbd | key=podman build -f ./Dockerfile}} <ref>[https://docs.podman.io/en/latest/markdown/podman-build.1.html podman-build — Podman documentation]</ref>
* {{ kbd | key=<nowiki>podman run [options] image [command [arg …]]</nowiki>}} e.g. {{ kbd | key=<nowiki>podman run --name <CONTAINER_NAME> <IMAGE_ID></nowiki>}} <ref>[https://docs.podman.io/en/latest/markdown/podman-run.1.html podman-run — Podman documentation]</ref>
 


== References ==
== References ==
Anonymous user

Navigation menu