Podman : Add Container Images |
Add new Container images you modified settings. | |
| [1] | For example, update an official image with installing [apache2] and add it as a new Container image. |
# show container images root@dlp:~# podman images REPOSITORY TAG IMAGE ID CREATED SIZE docker.io/library/debian latest 047bd8d81940 11 days ago 124 MB # run a container and install [apache2] root@dlp:~# podman run debian /bin/bash -c "apt-get update; apt-get -y install apache2" podman ps -a | tail -1 c475a59f83d8 docker.io/library/debian:latest /bin/bash -c apt-... 12 seconds ago Exited (0) 1 second ago agitated_bardeen # add the image that [apache2] was installed root@dlp:~# podman commit c475a59f83d8 srv.world/debian-apache2 Getting image source signatures Copying blob cb9eb84282d0 skipped: already exists Copying blob fbdda8f71fc1 done | Copying config a0aca892bf done | Writing manifest to image destination a0aca892bf29265cff57fbebde1df6a82b90d3bea6611f6f73600c3fee286036 # show container images root@dlp:~# podman images REPOSITORY TAG IMAGE ID CREATED SIZE srv.world/debian-apache2 latest a0aca892bf29 18 seconds ago 234 MB docker.io/library/debian latest 047bd8d81940 11 days ago 124 MB # confirm [apache2] to run a container root@dlp:~# podman run srv.world/debian-apache2 /usr/bin/whereis apache2 apache2: /usr/sbin/apache2 /usr/lib/apache2 /etc/apache2 /usr/share/apache2 /usr/share/man/man8/apache2.8.gz |
No comments:
Post a Comment