Wednesday, May 24, 2023

How to Install podman on RHEL ?

 Install podman on RHEL  



[root@10.1.1.1 ~]#

[root@10.1.1.1 ~]# yum install podman

Updating Subscription Management repositories.

Unable to read consumer identity


This system is not registered with an entitlement server. You can use subscription-manager to register.


Last metadata expiration check: 0:48:48 ago on Tue 23 May 2023 10:55:23 PM IST.

Dependencies resolved.

==============================================================================================================================

 Package                        Arch      Version                                         Repository                     Size

==============================================================================================================================

Installing:

 podman              

 

 

 [root@10.1.1.1 ~]#

[root@10.1.1.1 ~]# podman pull docker.io/publici/httpd

Trying to pull docker.io/publici/httpd:latest...

Getting image source signatures

Copying blob 0af70aecf67e done

Copying blob a3ed95caeb02 done

Copying blob efd26ecc9548 done

Copying blob 70bd0340825a done

Copying blob 302abf37f8d6 done

Copying blob 2f02fbf07b78 done

Copying blob f3dd40690212 done

Copying blob a3ed95caeb02 skipped: already exists

Copying blob a3ed95caeb02 skipped: already exists

Copying blob a3ed95caeb02 skipped: already exists

Copying blob a3ed95caeb02 skipped: already exists

Copying blob a3ed95caeb02 skipped: already exists

Copying blob 7043ffb37ce5 done

Copying blob 9654cb0d97aa done

Copying blob a3ed95caeb02 skipped: already exists

Copying blob a3ed95caeb02 skipped: already exists

Writing manifest to image destination

Storing signatures

2cc7fca9b1ef5fc72cb830a3480e07080d63c6a02ce744c628ed69cd40ebb661

[root@10.1.1.1 ~]#


[root@10.1.1.1 ~]#

[root@10.1.1.1 ~]#

[root@10.1.1.1 ~]#

[root@10.1.1.1 ~]# podman ps

CONTAINER ID  IMAGE       COMMAND     CREATED     STATUS      PORTS       NAMES

[root@10.1.1.1 ~]#

[root@10.1.1.1 ~]#

[root@10.1.1.1 ~]# podman images

REPOSITORY               TAG         IMAGE ID      CREATED      SIZE

docker.io/publici/httpd  latest      2cc7fca9b1ef  7 years ago  320 MB

[root@10.1.1.1 ~]#

[root@10.1.1.1 ~]#

[root@10.1.1.1 ~]# podman run -dt -p 8080:80/tcp docker.io/publici/httpd

d6bf684def18a8b23f8367e9c164bfca7847e4d100a8d4fa7f7b4fd69aa675f3

[root@10.1.1.1 ~]#

[root@10.1.1.1 ~]# podman ps

CONTAINER ID  IMAGE                           COMMAND               CREATED         STATUS         PORTS                 NAMES

d6bf684def18  docker.io/publici/httpd:latest  /usr/sbin/apache2...  14 seconds ago  Up 14 seconds  0.0.0.0:8080->80/tcp  blissful_shaw

[root@10.1.1.1 ~]#

[root@10.1.1.1 ~]#

[root@10.1.1.1 ~]# podman logs -l

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.88.0.2. Set the 'ServerName' directive globally to suppress this message

[root@10.1.1.1 ~]#

[root@10.1.1.1 ~]#

[root@10.1.1.1 ~]# podman ps

CONTAINER ID  IMAGE                           COMMAND               CREATED        STATUS        PORTS                 NAMES

d6bf684def18  docker.io/publici/httpd:latest  /usr/sbin/apache2...  2 minutes ago  Up 2 minutes  0.0.0.0:8080->80/tcp  blissful_shaw

[root@10.1.1.1 ~]#

[root@10.1.1.1 ~]# podman stop d6bf684def18

d6bf684def18

[root@10.1.1.1 ~]#


No comments:

Post a Comment