編程小知識【docker-0005】docker常用鏡像安裝-nginx
# 拉取鏡像
docker pull nginx:1.20.2
# 運行容器
docker run -d -p 8888:80 --name nginx-1.20.2 \
--privileged=true --restart=always \
-v /opt/docker/nginx-1.20.2/conf/nginx.conf:/etc/nginx/nginx.conf \
-v /opt/docker/nginx-1.20.2/html:/usr/share/nginx/html \
-v /opt/docker/nginx-1.20.2/log:/var/log/nginx \
nginx:1.20.2