Docker安装nginx
运行如下命令:
docker run --name bmc-nginx --restart always -p 80:80 -v /etc/nginx/nginx.conf:/etc/nginx/nginx.conf -v /etc/nginx/conf.d:/etc/nginx/conf.d -v /usr/share/nginx/html:/usr/share/nginx/html -v /var/log/nginx:/var/log/nginx -d nginx:1.17.4-alpine
配置文件:/etc/nginx/nginx.conf
配置目录: /etc/nginx/conf.d
静态文件目录:/usr/share/nginx/html
日志目录:/var/log/nginx