docker cli mac code example Example: docker run in mac docker container run --name web -d -p 8080:80 -v $PWD:/usr/share/nginx/html:ro -d nginx