Hexo服务器静态化部署
This commit is contained in:
@@ -34,7 +34,7 @@ nginx:latest
|
||||
```
|
||||
+ volume是本地目录与容器内目录的映射, 前面是本地目录, 后面是容器内目录
|
||||
也可以使用`mount`参数
|
||||
写作 **--mount type=bind,source=/test/html,target=/usr/share/nginx/html**
|
||||
写作 `--mount type=bind,source=/test/html,target=/usr/share/nginx/html`
|
||||
(如果加上readonly, 则在容器内无法对该目录进行写入操作)
|
||||
+ 目录映射的信息可以通过`docker inspect [ContainerId]`来查看
|
||||
```json
|
||||
|
||||
Reference in New Issue
Block a user