When creating a container using docker run
, is there a way to automatically copy files from a docker volume to the host directory it is mounted on?
When running
docker run -d -v /localpath:containerpath image
the files found in containerpath
are not copied to my /localpath
directory.
Is there a way to achieve this? The image contains a directory that needs to be accessible on the host machine for local development.