docker exec with volume mount code example
Example: docker exec mount volume
#make sure that you are inside the same directory
docker run -v pwd:/container/directory -other -options image_name command_to_run
#make sure that you are inside the same directory
docker run -v pwd:/container/directory -other -options image_name command_to_run