Volume
docker volume create my-vol # 創(chuàng)建一個(gè)數(shù)據(jù)卷
查看所有的數(shù)據(jù)卷
? ~ docker volume ls
DRIVER VOLUME NAME
local my-vol
查看指定數(shù)據(jù)卷的信息
? ~ docker volume inspect my-vol
[
{
"CreatedAt": "2018-11-09T05:37:42Z",
"Driver": "local",
"Labels": {},
"Mountpoint": "/var/lib/docker/volumes/my-vol/_data",
"Name": "my-vol",
"Options": {},
"Scope": "local"
}
]
刪除數(shù)據(jù)卷
docker volume rm my-vol
docker volume prune # 清理無主的數(shù)據(jù)卷