docker volume命令是用来对卷进行管理,以便使用镜像创建容器时,对目录进行挂载
docker volume COMMAND
[root@centos79 ~]# 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 unused local volumes
rm Remove one or more volumes
Run 'docker volume COMMAND --help' for more information on a command.
[root@centos79 ~]#
命令:
docker volume create ztj_1
docker volume create ztj_2
[root@centos79 ~]# docker volume create ztj_1
ztj_1
[root@centos79 ~]# docker volume create ztj_2
ztj_2
[root@centos79 ~]#
命令:
docker volume inspect ztj_1
[root@centos79 ~]# docker