赞
踩
[root@localhost]# docker inspect --format "{{.Config.Volumes}}" 容器id
效果:
map[/usr/share/elasticsearch/data:{}]
docker inspect 容器id | grep Mounts -A 50
效果:
"Mounts": [
{
"Type": "bind",
"Source": "/var/lib/docker/volumes/es-data/_data",
"Destination": "/usr/share/elasticsearch/data",
"Mode": "rw",
"RW": true,
"Propagation": "rslave"
}
],
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。