How to easily install Podman on Red Hat Linux

If you have RHEL 7.6 use : 

subscription-manager repos –enable=rhel-7-server-extras-rpms
yum install podman
yum install podman containernetworking-plugins (optional command)
yum install podman-docker (optional command)

Once you’ve confirmed Podman is installed , you can start to Pull images onto Podman

–view app logs 

podman container logs <name of container>

–list podman containers

podman ps -a

–remove podman containers

podman rm <name of container>

–stop a container

podman stop <name of container>

–remove all podman images- be careful this will remove all images

podman image rm -a

–podman ports exposed

podman inspect $CONTAINER -f='{{.NetworkSettings.Ports}}{{.HostConfig.PortBindings}}’

–ports listening on Linux

netstat -tulpn | grep LISTEN

–podman version

podman version

–podman inspect configurations

podman inspect

Author: Jack Vamvas

Leave a Reply

Discover more from ciquery

Subscribe now to keep reading and get access to the full archive.

Continue reading