Hexo服务器静态化部署

This commit is contained in:
结发受长生
2018-07-03 08:49:06 +08:00
parent 0a7f7b7f08
commit fc48469f69
3 changed files with 150 additions and 1 deletions
+1 -1
View File
@@ -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