docker inspect 查看 Mounts
"Mounts": [
{
"Type": "bind", ## bind
"Source": "/Users/x/GolandProjects/oss-investigation/seaweedfs/seaweedfs/docker/config.json",
"Destination": "/etc/seaweedfs/s3.json",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "volume", ## volume
"Name": "d223e7c9255db9fa7282244bf4d311cccbfb0abb2e96e06a835788a72a9f21c4",
"Source": "/var/lib/docker/volumes/d223e7c9255db9fa7282244bf4d311cccbfb0abb2e96e06a835788a72a9f21c4/_data",
"Destination": "/data",
"Driver": "local",
"Mode": "",
"RW": true,
"Propagation": ""
}
],
可以看到 Mounts 有两种类型
bind
挂载文件volume
挂载目录