Advertisement
fkeles

podman-install.sh

Sep 22nd, 2023
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.61 KB | Source Code | 0 0
  1. ## install podman
  2. ubuntu@FAKELES-7310:~$ sudo apt-get update
  3. ubuntu@FAKELES-7310:~$ sudo apt-get -y install podman
  4.  
  5. ## verify installation
  6. ubuntu@FAKELES-7310:~$ podman info
  7.  
  8. ## pull an image
  9. ubuntu@FAKELES-7310:~$ podman pull docker.io/library/httpd
  10. ## run a small httpd server
  11. ubuntu@FAKELES-7310:~$ podman run -dt -p 8080:80/tcp docker.io/library/httpd
  12. ## test it
  13. ubuntu@FAKELES-7310:~$ curl http://localhost:8080
  14.  
  15. ## see the logs
  16. ubuntu@FAKELES-7310:~$ podman logs -l
  17. ## Viewing the container pids
  18. ubuntu@FAKELES-7310:~$ podman top -l
  19. ## Stopping the container
  20. ubuntu@FAKELES-7310:~$ podman stop -l
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement