Lab 3.3 - Manage Containers using Podman

1. Run a Container

sudo netstat -tulpn | grep 8080
podman run -dt -p 8080:80/tcp

2. Listing Running Containers

podman ps
sudo netstat -tulpn | grep 8080

3. Testing the nginx Container

curl http://10.6X.6X.5:8080

4. Inspecting a running container

podman inspect -l
podman inspect -l | grep podman

5. Viewing the container’s logs

podman logs -l

6. Viewing the container’s pids

podman top -l

7. Stopping the container

podman stop -l

8. Listing all running and stopping containers

podman ps -a

9. Removing the container

podman rm -l

10. Exit from podX-master1