Manage containers Flashcards
how to search for container image from a specific registry
podman search –no-truncregistry.access.redhat.com/rhel8
–no-trunc gives more detailed information about the image
how to search for a container image
podman search rhel8
how to get the current container image from a specific repository
podman pull registry.access.redhat.com/ubi8/ubi:latest
registry_name/user_name/image_name:tag
where is the config file that podman uses to keep track of registries
/etc/containers/registries.conf
what command will display the current configuration for podman
podman info
how to inspect container image using podman
podman inspect registry.redhat.io/rhel8/python-36
how to inspect container image using skopeo
skopeo inspect docker://registry.redhat.io/rhel8/python-36
how to list all the container images on the system
podman images
how to remove a specific container image
podman rmi registry.redhat.io/rhel8/python-36:latest
how to view all current running containers
podman ps
how to view all containers that are either running or died
podman ps -a
how to remove a specific container
podman rm httpd-24
how to kill a running container
podman kill -s SIGKILL httpd-24
how to run a container image in the background with a specified name and port forwarding
podman run -d -p 8000:8080 –name=httpd-24 registry.redhat.io/rhel8/httpd-24
how to restart a container
podman restart httpd-24