5 lines
181 B

#!/bin/sh
docker ps
docker stop nginx
docker rm nginx
docker run --name nginx -p 80:80 -v $PWD/conf:/etc/nginx -v $PWD/log:/var/log/nginx -v $PWD/www:/usr/share/nginx/html -d nginx