Having Docker access External files

I solved the same problem with below commands

docker run  --mount type=bind,source="$(pwd)"/data,target=/home/data -it <name_of_container>

Note “-it conainter_name” should be the last flags.

Leave a Comment