-
Hello, I have a question regarding the use of Podman. I am trying to mount a host directory to a directory inside a Podman container while preserving the content that is already inside the container’s directory.
I understand that I can use the Is there an optional parameter that supports creating a directory directly when running a container? If not, similar work needs to be done through the following steps:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hello, I am interested in this feature? Is it implemented in podman? Thanks! |
Beta Was this translation helpful? Give feedback.
-
I really do not understand what you are after here? Do you want to volume mount into a container on a directory, that still has the contents of the underlying directory? Something similar to this exists for --tmpfs
|
Beta Was this translation helpful? Give feedback.
Interesting I was not aware of this behaviour.
This seems similar to the behavior of using a named volume.
If you do a
podman run -v mysql:/var/lib/mysql ...
Does it do what you expect, other then not using a directory on disk?