Docker & Virtualbox seem to have an issue with mounting a volume outside of the /Users directory. The only way to fix the issue is to delete the docker machine image, properly set the /Users/yourname directory as the share folder in Virtualbox and create a new docker machine image.
Steps to fix the issue:
docker-machine stop devdocker-machine rm devdocker-machine create --driver virtualbox deveval "$(docker-machine env dev)"docker build -t davesrepo/dynamo -f ./Dockerfile .docker run -v $(pwd):/var/dynamo -d -t -p 8001:8001 --env-file ./dynamo.env --name dynamo davesrepo/dynamodocker exec -it dynamo /bin/bashls
root@42f9e47fa2de:/var/dynamo# ls
Dockerfile README.md __init__.py __pycache__ bin config.ini requirements.txt seed.sql tests
Files!