Podman : Add Container Images2022/05/24 |
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 750037c05cfe 3 months 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 69538e1f52e4 registry.fedoraproject.org/fedora:latest /bin/bash -c dnf ... 3 minutes ago Exited (0) About a minute ago busy_williamson # add the image that [httpd] was installed [root@dlp ~]# podman commit 69538e1f52e4 srv.world/fedora-httpd Getting image source signatures Copying blob c550c8e0f355 skipped: already exists Copying blob ba1be5eab879 done Copying config 6c88b642f7 done Writing manifest to image destination Storing signatures 6c88b642f75c8805d39209b9c8c8ccc0dd8bd1ea8ff8798d3a3639e8b1eaa3ee # show container images [root@dlp ~]# podman images REPOSITORY TAG IMAGE ID CREATED SIZE srv.world/fedora-httpd latest 6c88b642f75c 27 seconds ago 566 MB registry.fedoraproject.org/fedora latest 750037c05cfe 3 months 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 |
|