Hi Matthias, On 21/10/2024 14:25, Matthias Apitz wrote:
Hello,
We build our image based on the Dockerfile with something like
podman build -t sles15-sp6-v73 sles15-sp6-v73
and run it with
podman run -d -p 2022:22 ....sles15-sp6-v73
Building means that based on the Dockerfile we install the software which should be come up on container start. This works all fine.
When we now add, install or configure something in addition in the running container, all this gets lost on killing the container and restart it again with 'podman run...'
Is it somehow possible to write this modified container to an image and start this again, and not the image which was build with the Dockerfile?
yes use podman commit https://docs.podman.io/en/latest/markdown/podman-commit.1.html
Thanks
matthias
-- Paul Holzinger