Podman : Add Container Images2021/08/28 |
Add new Container images you modified settings.
|
|
[1] | For exmaple, 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 fe3c5de03486 10 days ago 129 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 f08286a9bfa4 docker.io/library/debian:latest /bin/bash -c apt-... 24 seconds ago Exited (0) 1 second ago dazzling_feistel # add the image that [apache2] was installed root@dlp:~# podman commit f08286a9bfa4 srv.world/debian-apache2 Getting image source signatures Copying blob a881cfa23a78 skipped: already exists Copying blob 4b0d9605c029 done Copying config 68a7269c54 done Writing manifest to image destination Storing signatures 68a7269c54578081df65f455af6847ed2dbd69e54da8de29bc41582a4cb07d3b # show container images root@dlp:~# podman images REPOSITORY TAG IMAGE ID CREATED SIZE srv.world/debian-apache2 latest 68a7269c5457 17 seconds ago 260 MB docker.io/library/debian latest fe3c5de03486 10 days ago 129 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 |
Sponsored Link |