How To Install Podman and Run Container On Linux

How To Install Podman and Run Container On Linux 8

How To Install Podman on Linux machine. This is an open-source daemonless container platform that was built to develop, manage and deploy the container and pods as well. you can install and configure the podman container on Centos 8 and rhel as well.

Below command to install on CentOS 8

Check Out: How To Provide Private Subnets Servers To Internet Access

yum install podman -y

how to install podman

Below command to install on Rhel 8

dnf module install -y @container-tools

Run below command to check container tools installed on Rhel 8

dnf module list | grep container-tools

install podman on linux

Check Out: How To Install SSH Pass For login To SSH Server In Linux

Now podman installation successful, check the version using the below command.

podman version and also find the more information about podman using podman info

centos 8 install podman

You can also find more command using this podman –help

Check Out: How To Configure Rancher Container Orchestration Server In Linux

If you need to search the mages use podman search image_name and you can pull the image using this command.

podman pull centos:8

podman container

Check downloaded images using podman images

Check Out: No Disk Detected While Installing Redhat 8 Beta Version In Vmware

I have created a container with the name of apache using the centos images.

podman run -it –name apache -p 80:80 0f3e07c0138f /bin/bash

List all containers including stopped.

podman ps -a

Check Out: How To Start Monitoring For Elasticsearch Cluster On Linux

Find IP using the below command

podman inspect d8424844e42a | grep “IPAddress”

Find the logs related to your running container using the below commands.

You can also check the logs using podman logs d8424844e42a and latest all using podman logs –latest d8424844e42a. Real-time logs using ‘-f’ options.

You’re done centos 8 install podman podman install and configure

Share on:

I'm the founder of Curious Viral. I hope this blog will provide you complete information about Linux Technology & I would like to share my technical knowledge with you which I have learned during this period.

Other Posts You May Like...

Leave a comment