Difference between revisions of "Podman"
From John Freier
Line 10: | Line 10: | ||
'''Run an image''' | '''Run an image''' | ||
podman run -dt -p 8080:80/tcp docker.io/library/httpd | podman run -dt -p 8080:80/tcp docker.io/library/httpd | ||
+ | |||
+ | '''View Logs''' | ||
+ | podman logs -l | ||
+ | |||
+ | '''Stop the latest container''' | ||
+ | |||
+ | -l is for latest | ||
+ | |||
+ | podman stop -l |
Revision as of 10:00, 6 April 2022
List Images
podman images
List running images
podman ps
Pull an image
podman pull docker.io/library/httpd
Run an image
podman run -dt -p 8080:80/tcp docker.io/library/httpd
View Logs
podman logs -l
Stop the latest container
-l is for latest
podman stop -l