docker volume
[root@localhost128 home]# docker volume --help
Usage: docker volume COMMAND
Manage volumes
Commands:
## 创建一个容器卷
create Create a volume
## 查看容器卷的详细信息
inspect Display detailed information on one or more volumes
## 列出所有容器卷
ls List volumes
## 删除所有未使用的本地容器卷
prune Remove all unused local volumes
## 删除一个或多个容器卷
rm Remove one or more volumes
## docker volume COMMAND --help 获取命令的更多信息
Run 'docker volume COMMAND --help' for more information on a command.
- docker volume create 创建一个容器卷
[root@localhost128 home]# docker volume create --help
Usage: docker volume create [OPTIONS] [VOLUME]
Create a volume
Options:
-d, --driver string Specify volume driver name (default "local")
--label list Set metadata for a volume
-o, --opt map Set driver specific options (default map[])
- docker volume inspect 查看容器卷的详细信息