Shortening the command

Commands

docker container run -v /Users/julian/workspace/docker_examples/nginx/html:/var/www/html:ro -p 80:80 nginx:latest
docker container run -v "$(pwd)/html":/var/www/html:ro -p 80:80 nginx:latest

Mounting data

The mount option