Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Commit

Permalink
docs(docker): 更新compose操作中卷的命名方式
Browse files Browse the repository at this point in the history
  • Loading branch information
zjZSTU committed Jan 1, 2020
1 parent db955b0 commit eef6b80
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/docker/compose/Compose文件格式 - 存储设置.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,8 @@ services:
volumes:
data-volume:
```
```

## 卷命名策略

`docker-compose`新建卷时,会使用`{NAME}_{VOLUME_NAME}`的方式创建,比如卷命名为`ubuntu_home`,使用镜像为`zjzstu/ubuntu:latest`,那么如果卷不存在,新创建的卷命名为`ubuntu_ubuntu_home`

0 comments on commit eef6b80

Please sign in to comment.