Podman : Add Container Images2026/05/07 |
|
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/ubuntu latest 30ba44506a6d 2 weeks ago 111 MB # run a container and install [apache2] root@dlp:~# podman run ubuntu /bin/bash -c "apt-get update; apt-get -y install apache2" podman ps -a | tail -1 349a751bf1d8 docker.io/library/ubuntu:latest /bin/bash -c apt-... 21 seconds ago Exited (0) 7 seconds ago laughing_cori # add the image that [apache2] was installed root@dlp:~# podman commit 349a751bf1d8 srv.world/ubuntu-apache2 Getting image source signatures Copying blob 0c3db79307ab skipped: already exists Copying blob f421a7e99ead skipped: already exists Copying blob 70ad9d5919aa done | Copying config 53b7e6d878 done | Writing manifest to image destination 53b7e6d878bc09950d41e85267d00eb7fc4dd47776d37a86edb5282a19be4a23 # show container images root@dlp:~# podman images REPOSITORY TAG IMAGE ID CREATED SIZE srv.world/ubuntu-apache2 latest 53b7e6d878bc 20 seconds ago 231 MB docker.io/library/ubuntu latest 30ba44506a6d 2 weeks ago 111 MB # confirm [apache2] to run a container root@dlp:~# podman run srv.world/ubuntu-apache2 /usr/bin/whereis apache2 apache2: /usr/sbin/apache2 /usr/lib/apache2 /etc/apache2 /usr/share/apache2 |
| Sponsored Link |
|
|