docker mongodb container path code example
Example: mount volume ~/data:/data mongo
docker volume create mongodbdata
docker run -p 27017:27017 -v mongodbdata:/data/db mongo
docker volume create mongodbdata
docker run -p 27017:27017 -v mongodbdata:/data/db mongo