On 2019-08-19 13:59, Daniel Walsh wrote:
On 8/19/19 1:25 PM, Stefan Schulze Frielinghaus wrote:
> Hi all,
> Is it possible to mount an arbitrary host directory as an overlay via
> Consider the following example: I would like to mount directory /foo of
> an host system as /bar in an container. All changes to the directory
> should be destroyed once the container is destroyed. I thought that an
> overlay filesystem would be the method of choice here. In the man pages
> of podman I only found options for bind and tmpfs mounts. Is there any
> way to also perform an overlay mount?
> Podman mailing list -- podman(a)lists.podman.io
> To unsubscribe send an email to podman-leave(a)lists.podman.io
We have this in Buildah and I had started working on the feature for podman.
I have not had time to get back to it, but hope to soon. If you had
time and wanted to work on it, that would be great.
Podman mailing list -- podman(a)lists.podman.io
To unsubscribe send an email to podman-leave(a)lists.podman.io
In the meantime - what you're asking should be possible with a 'tmpfs'
mount, as long as you put the default content for the mount in the
image. Podman defaults all tmpfs mounts to use the 'tmpcopyup' option
which copies contents from the directory in the image that is being
mounted over - so a tmpfs mount over the content in the image would
give you a mutable layer on top of the contents of the directory.
I don't think this is exactly what you want, but it's hopefully close
enough to be useful until we can get proper overlay support landed.