docker 常用指令

1. 查看容器中镜像的状态

  • docker inspect [OPTIONS] NAME|ID [NAME|ID…]
1
2
3
4
5
6
7
8
9
10
11
12
root@yuanmomo:~# docker inspect caddy |  grep Mounts -A 10
"Mounts": [
{
"Type": "volume",
"Name": "364f6354a78f19d5a55245d951eca756779d18328eec94121e2ecb377f64a84c",
"Source": "/var/lib/docker/volumes/364f6354a78f19d5a55245d951eca756779d18328eec94121e2ecb377f64a84c/_data",
"Destination": "/srv",
"Driver": "local",
"Mode": "",
"RW": true,
"Propagation": ""
},
Just for my love !!