CentOS Stream 8
Sponsored Link

Podman : Add Container Images2021/03/22

 
Add new Container images you modified settings.
[1] For example, update an official image with installing [httpd] and add it as a new Container image.
# show container images

[root@dlp ~]#
podman images

REPOSITORY                  TAG     IMAGE ID      CREATED       SIZE
registry.centos.org/centos  stream8 2f3766df23b6  3 months ago  217 MB

# run a container and install [httpd]

[root@dlp ~]#
podman run centos:stream8 /bin/bash -c "dnf -y upgrade; dnf -y install httpd"

[root@dlp ~]#
podman ps -a | tail -1

34640e93c501  registry.centos.org/centos:latest  /bin/bash -c dnf ...  About a minute ago  Exited (0) 43 seconds ago              brave_wiles

# add the image that [httpd] was installed

[root@dlp ~]#
podman commit 34640e93c501 srv.world/centos-httpd

Getting image source signatures
.....
.....
Writing manifest to image destination
Storing signatures
6a4b6e2cae377eb4199616fe8936976ee300e3b07f2578e37d4bbdd143fa6a39

# show container images

[root@dlp ~]#
podman images

REPOSITORY                  TAG     IMAGE ID      CREATED         SIZE
srv.world/centos-httpd      latest  6a4b6e2cae37  21 seconds ago  322 MB
registry.centos.org/centos  latest  2f3766df23b6  3 months ago    217 MB

# confirm [httpd] to run a container

[root@dlp ~]#
podman run srv.world/centos-httpd /usr/bin/whereis httpd

httpd: /usr/sbin/httpd /usr/lib64/httpd /etc/httpd /usr/share/httpd /usr/share/man/man8/httpd.8.gz
Matched Content