本机docker版本
docker –version Docker version 18.09.0
1.进入docker 目录
[email protected]:~# cd /var/lib/docker [email protected]:/var/lib/docker# ls builder buildkit containers image network overlay2 plugins runtimes swarm tmp trust volumes
2.进入containers,每个序列号都是一个image
[email protected]:/var/lib/docker# cd containers/ [email protected]:/var/lib/docker/containers# ls e36d800f663b626aef2c625c48c353555d9b203e13e7e49093d15be2f3a0fb6e
3.进入镜像可以看到
[email protected]:/var/lib/docker/containers# cd e36d800f663b626aef2c625c48c353555d9b203e13e7e49093d15be2f3a0fb6e/ [email protected]:/var/lib/docker/containers/e36d800f663b626aef2c625c48c353555d9b203e13e7e49093d15be2f3a0fb6e# ls checkpoints hostconfig.json mounts config.v2.json hostname resolv.conf e36d800f663b626aef2c625c48c353555d9b203e13e7e49093d15be2f3a0fb6e-json.log hosts resolv.conf.hash
4.进入image文件夹,里面有repositories.json的文件,详细记录了各镜像的一些信息:
[email protected]:/var/lib/docker# cd image/ [email protected]:/var/lib/docker/image# ls overlay2 [email protected]:/var/lib/docker/image# cd overlay2/ [email protected]:/var/lib/docker/image/overlay2# ls distribution imagedb layerdb repositories.json
参考
学习记录,如有帮助甚好。
原文地址:https://www.cnblogs.com/Rightsec/p/10222950.html
时间: 2024-10-10 22:54:41