Podman : Add Container Images2023/03/01 |
Add new Container images you modified settings.
|
|
[1] | For exmaple, 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 docker.io/library/almalinux latest d3ffa43c2567 6 days ago 196 MB # run a container and install [httpd] [root@dlp ~]# podman run almalinux /bin/bash -c "dnf -y upgrade; dnf -y install httpd" podman ps -a | tail -1 41173e1166f8 docker.io/library/almalinux:latest /bin/bash -c dnf ... 49 seconds ago Exited (0) 39 seconds ago lucid_lederberg # add the image that [httpd] was installed [root@dlp ~]# podman commit 41173e1166f8 srv.world/almalinux-httpd Getting image source signatures Copying blob 624a98f02f85 skipped: already exists Copying blob f2e7888887f0 done Copying config ffd19e5b53 done Writing manifest to image destination Storing signatures ffd19e5b5339bf66cfb00dfc00712f89d2ae7eedc35e952896dee5171dc45672 # show container images [root@dlp ~]# podman images REPOSITORY TAG IMAGE ID CREATED SIZE srv.world/almalinux-httpd latest ffd19e5b5339 18 seconds ago 251 MB docker.io/library/almalinux latest d3ffa43c2567 6 days ago 196 MB # confirm [httpd] to run a container [root@dlp ~]# podman run srv.world/almalinux-httpd /usr/bin/whereis httpd httpd: /usr/sbin/httpd /usr/lib64/httpd /etc/httpd /usr/share/httpd /usr/share/man/man8/httpd.8.gz |
Sponsored Link |
|