Podman : Add Container Images2024/05/03 |
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 19f52f582331 43 minutes ago 229 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 19b8a013fee0 registry.fedoraproject.org/fedora:latest /bin/bash -c dnf ... 18 seconds ago Exited (0) 3 seconds ago stoic_buck # add the image that [httpd] was installed [root@dlp ~]# podman commit 19b8a013fee0 srv.world/fedora-httpd Getting image source signatures Copying blob e3b1f55d8f37 skipped: already exists Copying blob fe085ab8733b done | Copying config 9d6d273370 done | Writing manifest to image destination 9d6d273370e26cc6b7fbc53ada318eb2a61b6562d9b52d3830538c810df5ad89 # show container images [root@dlp ~]# podman images REPOSITORY TAG IMAGE ID CREATED SIZE srv.world/fedora-httpd latest 9d6d273370e2 22 seconds ago 343 MB registry.fedoraproject.org/fedora latest 19f52f582331 45 minutes ago 229 MB # confirm [httpd] to run a container [root@dlp ~]# podman run srv.world/fedora-httpd /usr/sbin/httpd -V Server version: Apache/2.4.59 (Fedora Linux) Server built: Apr 15 2024 00:00:00 Server's Module Magic Number: 20120211:131 Server loaded: APR 1.7.3, APR-UTIL 1.6.3, PCRE 10.42 2022-12-11 Compiled using: APR 1.7.3, APR-UTIL 1.6.3, PCRE 10.42 2022-12-11 Architecture: 64-bit Server MPM: event threaded: yes (fixed thread count) forked: yes (variable process count) ..... ..... |
Sponsored Link |
|