docker pull下来的镜像放哪儿了?

本机docker版本
docker –version
Docker version 18.09.0

 1.进入docker 目录

root@Rightsec:~# cd /var/lib/docker
root@Rightsec:/var/lib/docker# ls
builder  buildkit  containers  image  network  overlay2  plugins  runtimes  swarm  tmp  trust  volumes

2.进入containers,每个序列号都是一个image

root@Rightsec:/var/lib/docker# cd containers/
root@Rightsec:/var/lib/docker/containers# ls
e36d800f663b626aef2c625c48c353555d9b203e13e7e49093d15be2f3a0fb6e

3.进入镜像可以看到

root@Rightsec:/var/lib/docker/containers# cd e36d800f663b626aef2c625c48c353555d9b203e13e7e49093d15be2f3a0fb6e/
root@Rightsec:/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的文件,详细记录了各镜像的一些信息:

root@Rightsec:/var/lib/docker# cd image/
root@Rightsec:/var/lib/docker/image# ls
overlay2
root@Rightsec:/var/lib/docker/image# cd overlay2/
root@Rightsec:/var/lib/docker/image/overlay2# ls
distribution  imagedb  layerdb  repositories.json

参考

1.docker pull在哪儿

学习记录,如有帮助甚好。

No pains, No gains
posted @ 2019-01-13 17:37  Rightsec  阅读(19094)  评论(0编辑  收藏  举报