Hello Everyone, In this tutorial I’ll explain about how to running container on RHEL 8, for can use a container you must install container-tools and podman-docker packages.
On RHEL Environtment if you will to installing a packages, you must register in redhat subscription manager first.
In the following are step by step configuration :
First login into root access, and then do register to redhat subscription :
subscription-manager register –auto-attach
Use Username and Password as your redhat.com account for register.
Update packages :
# yum -y update
Install container-tools module and podman-docker
# yum module install container-tools -y
# yum install podman-docker -y
And install slirp4netns podman package for rootless container.
# yum install slirp4netns podman -y
After completed installer, exit from root access then try test for running podman via rootless (regular user).
Login registry with user account that are same on redhat developer account as the shown bellow.
If you get the error messages you can try delete for docker directory in /etc.
# ls -l /etc/docker/certs.d
# sudo rm -r /etc/docker
And then try to login registry again.
Do pull images from registry.redhat.io/ubi8/ubi with podman as the shown bellow :
Check images in local storage :
And now test to running container images with podman :
Until here you have successfull to running basic container with redhat 8.
Source : Redhat Documentation