Podman : Add Container Images2021/11/11 |
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.fedoraproject.org/fedora latest 1b52edb08181 7 days ago 159 MB # run a container and install [httpd] [root@dlp ~]# podman run fedora /bin/bash -c "dnf -y upgrade; dnf -y install httpd" podman ps -a | tail -1 bb09336b25be registry.fedoraproject.org/fedora:latest /bin/bash -c dnf ... About a minute ago Exited (0) 28 seconds ago pensive_tereshkova # add the image that [httpd] was installed [root@dlp ~]# podman commit bb09336b25be srv.world/fedora-httpd Getting image source signatures ..... ..... Writing manifest to image destination Storing signatures 3b282c5eda58e1aaac3e5d2dc8a0d172367f93b3bdf99b48b12f8d4894c23ee0 # show container images [root@dlp ~]# podman images REPOSITORY TAG IMAGE ID CREATED SIZE srv.world/fedora-httpd latest 3b282c5eda58 29 seconds ago 418 MB registry.fedoraproject.org/fedora latest 1b52edb08181 7 days ago 159 MB # confirm [httpd] to run a container [root@dlp ~]# podman run srv.world/fedora-httpd /usr/bin/whereis httpd httpd: /usr/sbin/httpd /usr/lib64/httpd /etc/httpd /usr/share/httpd |
Sponsored Link |