docker 运行nginx
时间: 2023-08-26 07:18:57 浏览: 96
要在Docker中运行Nginx,你需要按照以下步骤进行操作:
1. 首先,创建Nginx配置文件所需的目录。使用命令`mkdir -p /data/docker/nginx/conf/vhost`、`mkdir -p /data/docker/nginx/logs`、`mkdir -p /data/docker/nginx/html`和`mkdir -p /data/docker/nginx/ssl`来创建对应的目录。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [docker环境下运行nginx](https://blog.csdn.net/bowei026/article/details/107251334)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文