Podman: Difference between revisions
Jump to navigation
Jump to search
→Display the log of the container
No edit summary |
|||
| Line 11: | Line 11: | ||
* {{ 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>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 <CONTAINER_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 <CONTAINER_ID_OR_NAME></nowiki>}} <ref>[https://docs.podman.io/en/latest/markdown/podman-logs.1.html podman-logs — Podman documentation]</ref> | ||
** If the content of log is too long, enter the command to brief the content {{ kbd | key=<nowiki>podman logs --tail=10 <CONTAINER_ID_OR_NAME></nowiki>}} to output the {{ kbd | key=10}} ({{ kbd | key=<nowiki>--tail=<LINE></nowiki>}}) of LINES at the end of the logs. | |||
== List the images == | == List the images == | ||