1 2 3 4 5 6
FLAG=-it if [ "$1" == "-d" ]; then FLAG="-d" fi docker run $FLAG -v $PWD/www:/usr/share/nginx/html:ro nginx:latest