top | item 43127227

(no title)

fburnaby | 1 year ago

This distinction is a more useful one that the article made. I love dockerfiles and immutability, but there are good cases for mutable containers, too.

discuss

order

orbisvicis|1 year ago

You can also do some neat things with "--ephemeral" and "--volatile" to basically overlay the image (or a subset) with tmpfs; any changes to those overlays will be lost when the container is brought down. The specific mount points can be controlled in greater detail via "--tmpfs" and "--overlay".

https://0pointer.net/blog/running-an-container-off-the-host-...

I'm not sure how easy that is to customize in Podman.

throwaway894345|1 year ago

Containers already are mutable on all popular runtimes. “Immutability” comes from destroying and recreating them from their image, but there’s nothing forcing you to delete/recreate them, and indeed that’s not even the default behavior.