How to run Podman 4.9 in RHEL 8 and create local podman registry
In this video we are going to run podman containers in Red Hat Enterprise Linux 8.10 Operating System.
Podman will be installed by default in Fedora,Red Hat EL8 and EL9 based operating systems. Base operating system for (EL 8/9) I have chosen is "Server with GUI".
You need to install Podman manually in Other operating systems either through offline packages or from OS repositories.
1. First check disk space, RAM and Internet connection is needed to download images.
2. Check Podman status and Podman info.
To start Podman ---- systemctl start podman
To stop Podman ---- systemctl stop podman
To enable Podman ---- systemctl enable --now podman
To disable Podman ---- systemctl disable podman
3. Your First Podman image Hello-World and run the container.
podman pull hello-world:latest
podman run hello-world:latest
4. pull and run latest registry image from docker hub.
5. pull latest amazon linux image and test its working or not.
6. Tag that latest amazon linux image you pulled.
7. After tagging, try to push the tagged image to local registry. it will be failing due to insecure connection.
8. Edit registries.conf file and add the entries as shown below to store images in local registry and restart podman.
[[registry]]
location = "localhost:5000"
insecure = true
10. Push the taggged image to local registry. It will be successful.
11. Navigate the directory structure and location of podman registry in your machine.
12. Cleanup the Unused images and remove unused containers and only registry should be up and running.
13. Finally try to pull the image from local podman registry.
#installpodman #podmansetup #podman #podmancontainers #localpodmanregistry #pods #podmanlinux #podman4 #podman5