Skip to content

Sharing data between containers without knowledge of the host #12203

Answered by mheon
Zzvok asked this question in Q&A
Discussion options

You must be logged in to vote

All data in the containers that make up the pod will also exist on the host (the mounted filesystems for a root container, for example, live under /var/lib/containers/storage by default), with the possible exception of tmpfs filesystems - and even then, it's trivial to join the mount namespace of the container, at which point you'll be able to see even these.

I would recommend a Podman-managed named volume given this, mounted into both containers. It still does exist on the host's filesystem, but it's entirely managed by Podman and can be set to autoremove when the last container using it is removed.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@rhatdan
Comment options

Answer selected by Zzvok
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants