Skip to content

Expose bind mounts from one container to another in rootless mode #12890

Answered by giuseppe
andreluisos asked this question in Q&A
Discussion options

You must be logged in to vote

you need to manually configure a mount on top of a parent of ~/data/mount from the podman unshare environment and make it shared. Then you have to bind mount that parent you made shared inside the container. e.g.

$ podman unshare mount --bind --make-shared ~/data ~/data

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@Luap99
Comment options

@giuseppe
Comment options

@andreluisos
Comment options

Answer selected by andreluisos
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
kind/bug Categorizes issue or PR as related to a bug. kind/feature Categorizes issue or PR as related to a new feature.
4 participants
Converted from issue

This discussion was converted from issue #12879 on January 17, 2022 12:36.