Podman : Add Container Images2019/11/19 |
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 docker.io/library/fedora latest f0858ad3febd 2 weeks ago 201 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 2d2ca2cfecd7 docker.io/library/fedora:latest /bin/bash -c dnf ... 5 minutes ago Exited (0) 4 minutes ago boring_visvesvaraya # add the image that [httpd] was installed [root@dlp ~]# podman commit 2d2ca2cfecd7 srv.world/fedora_httpd Getting image source signatures Copying blob 2ae3cee18c8e skipped: already exists Copying blob a64d13bfbeb9 done Copying config bb6f86826d done Writing manifest to image destination Storing signatures bb6f86826d3f6d6115118070e1fd5cd8d815dcdf784ccf13ad2d1d873b7a2c3f # show container images [root@dlp ~]# podman images REPOSITORY TAG IMAGE ID CREATED SIZE srv.world/fedora_httpd latest bb6f86826d3f 26 seconds ago 622 MB docker.io/library/fedora latest f0858ad3febd 2 weeks ago 201 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 |
|