Podman : Add Container Images2020/05/11 |
Add new Container Images.
|
|
[1] | For exmaple, update official image with installing [httpd] and add it as a new Container Images. |
# show container images [root@dlp ~]# podman images REPOSITORY TAG IMAGE ID CREATED SIZE registry.fedoraproject.org/fedora latest d81c91deec0d 11 days ago 208 MB # run container and install [httpd] [root@dlp ~]# podman run fedora /bin/bash -c "dnf -y upgrade; dnf -y install httpd" podman ps -a | head -2 CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 64a9a6fb4727 registry.fedoraproject.org/fedora:latest /bin/bash -c dnf ... About a minute ago Exited (0) 3 seconds ago heuristic_antonelli # add the image that [httpd] was installed [root@dlp ~]# podman commit 64a9a6fb4727 srv.world/fedora_httpd Getting image source signatures Copying blob a4c0fa2b217d skipped: already exists Copying blob c5daca0f6923 done Copying config a461b4b0b7 done Writing manifest to image destination Storing signatures a461b4b0b7040bebe2b05af2604a228b77f3a4977907f84683b472bf546ed648 # show container images [root@dlp ~]# podman images REPOSITORY TAG IMAGE ID CREATED SIZE srv.world/fedora_httpd latest a461b4b0b704 20 seconds ago 452 MB registry.fedoraproject.org/fedora latest d81c91deec0d 11 days ago 208 MB # confirm [httpd] to run 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 |
|