
Podman also known as Pod manager is an open-source container management tool used to build and deploy containerized applications, pods and volumes on a server. The Podman daemonless architecture reduces the attack surface for containerized applications and uses add-on tools such as Buildah to enable the secure management of containers on your server.
This article explains how to install Podman on a Rocky Linux 9 server and perform common container management tasks to build and run containerized applications.
Before you begin:
Podman is available in the default package repositories on Rocky Linux 9. Follow the steps below to install the latest Podman package using the DNF package manager.
Update the server's package index.
Install Podman.
View the installed Podman version on your server.
Output:
Podmans uses two linked service profiles to run on a server podman.service and podman.socket. podman.service enables access to Podman CLI and interaction with the Podman engine to manage containers, images and Pods. podman.socket enables remote access to the application API, and integrates Podman with other container development tools. Follow the steps below to manage the Podman system service and enable the application to run on your server.
Enable the Podman service to automatically start at system boot.
Output:
Start the Podman service.
Stop the Podman service.
View the Podman service status and verify that it's running.
Podman supports multiple image sources and registries to pull and run container images on your server. The /etc/containers/registries.conf configuration file includes registry information used by Podman to find container images. Podman uses default registries such as Docker Hub, quay.io, and registry.fedoraproject.org to find new images if the configuration file does not include any registry sources. Follow the steps below to deploy a containerized HTTP application using Podman using the default registry sources.
Pull the latest hello-world container image.
Output:
List all available Podman images on the server.
Output:
Run a new container using the hello-world image.
Output:
List all Podman processes and verify that the container is created, but exits after running.
Output:
Podman supports private and public registries such as the Vultr Container Registry to manage container images. Follow the steps below to connect to your Vultr Container Registry, tag and store the hello-world container image in a new repository.
Access your Vultr Container Registry's management page.
Find your registry details within the overview tab, and copy the default username and API key credentials to your clipboard.
Login to your Vultr Container Registry using Podman. Replace examplereg, example-user, and example-key with your actual registry details.
List all available Podman images.
Output:
Tag the hello-world image with your desired Vultr Container Registry repository tag.
List all available Podman images again and verify that the tagged image is available.
Output:
Push the tagged image to your Vultr Container Registry.
Access your Vultr Container Registry and click the Repositories tab to verify that the new container image is available.
You have installed Podman on a Rocky Linux 9 server, managed the Podman system service, and deployed a containerized application. Podman enables you to build and run containerized applications using container images from multiple registry sources. For more information, visit the Official Podman Documentation.
0 Comments
Be the first to comment and share your perspective with the community.