I have a docker container which mounts volume using
This mounts overwrites (shadows) the files inside the container. I would now like to copy the original files from inside the container into the mounted volumes. For this I need to access the shadowed files.
The common way of doing this seems to be
mount --bind. But to use this, I would need the leverage my privileges inside the docker container and I would rather not do that.
Is there another way of accessing this shadows files that is doable from inside the docker container?
A little bit about the background (in response to comments): I want to initialize the mounted volume with the contents inside the docker image. That is standard behavior of docker when using named volumes. Unfortunately that does not seem to be possible in ECS (which is where I start the container).