How To Share Data Between the Docker Container and the Host $ docker run --name=nginx -d -v ~/nginxlogs:/var/log/nginx -p 5000:80 nginx