Podman

"Podman (Pod Manager) is a fully featured container engine that is a simple daemonless tool. Podman provides a Docker-CLI comparable command line that eases the transition from other container engines and allows the management of pods, containers and images."

To get an environment where you can manipulate individual containers: dnf module install -y container-tools

Container settings: cat /etc/containers/registries.conf

To get container images from a remote registry: podman pull registry.redhat.io/ubi8/ubi:latest podman pull registry.redhat.io/rhel8/rsyslog
 * 1) podman pull [: ]/[ /] :

To see the images on your system: podman images

To look at the metadata associated with an image: podman inspect registry.redhat.io/ubi8/rhel

To run a container image: podman run --name=myrsyslog -d registry.redhat.io/rhel8/rsyslog

To run a command inside a container:

Note: after the container runs the command, the container exits and is deleted (--rm). podman run --rm registry.redhat.io/ubi8/ubi cat /etc/os-release

To run an interactive shell inside a container: podman run --name=mybash -it registry.redhat.io/ubi8/ubi /bin/bash

To list running, stopped and exited containers: podman ps -a

To start an exited container again: podman start -ai mybash

To investigate within a running container: podman exec -it myrsyslog /bin/bash

To stop a container: podman stop myrsyslog

To remove a container: podman rm myrsyslog

If you want to clear out all your containers: podman rm $(podman ps -a -q)

To remove images you no longer need: podman rmi registry.redhat.io/ubi8/rhel

If you want to clear out all your images: podman rmi -f $(podman images -a -q)

Set up a container to start as a systemd service: setsebool -P container_manage_cgroup on cat </etc/systemd/system/rsyslog-container.service [Unit] Description=RSyslog container [Service] Restart=always ExecStart=/usr/bin/podman start -a myrsyslog ExecStop=/usr/bin/podman stop -t 2 myrsyslog [Install] WantedBy=local.target EOF systemctl enable rsyslog-container.service systemctl start rsyslog-container.service systemctl status rsyslog-container.service

Source: RHEL8 Documentation