Difference between revisions of "Podman"

From John Freier
Jump to: navigation, search
Line 12: Line 12:
  
 
'''View Logs'''
 
'''View Logs'''
   podman logs -l
+
   podman logs ff22b3bfecc1
  
 
'''Stop the latest container'''
 
'''Stop the latest container'''
  
-l is for latest
+
  podman stop ff22b3bfecc1
  
  podman stop -l
+
'''List all containers'''
 +
  podman ps -a
 +
 
 +
'''Remove Container'''
 +
  podman rm ff22b3bfecc1

Revision as of 11:03, 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 ff22b3bfecc1

Stop the latest container

 podman stop ff22b3bfecc1

List all containers

 podman ps -a

Remove Container

 podman rm ff22b3bfecc1