Docker Nginx安装(centos7)

docker search nginx
docker pull nginx
docker images nginx
 
mkdir -p /data/nginx/{conf.d,html,logs}
 
docker run -p 80:80 --name nginx-server -v /data/nginx/html:/usr/share/nginx/html -v /data/nginx/nginx.conf:/etc/nginx/nginx.conf -v /data/nginx/logs:/var/log/nginx -v /data/nginx/conf.d:/etc/nginx/conf.d -d nginx:latest
 
docker ps -a

posted on 2020-01-14 16:46  星云留水  阅读(272)  评论(0编辑  收藏  举报

导航