15 lines
341 B
Markdown
15 lines
341 B
Markdown
### host模式,挂载conf目录和日志路径
|
||
|
||
```bash
|
||
docker run -itd --name nginx \
|
||
--restart=always \
|
||
--network=mynet \
|
||
-p 8443:8443 \
|
||
-v /root/data/nginx/log:/var/log/nginx \
|
||
-v /root/data/nginx/conf.d:/etc/nginx/conf.d \
|
||
-v /root/data/nginx/ssl:/etc/nginx/ssl \
|
||
-v /root/data/nginx/nginx.conf:/etc/nginx/nginx.conf \
|
||
nginx:1.20
|
||
```
|
||
|