Docker image hierarchy

I would like to check which image is the parent of my given Docker image (FROM with the image layer they created). How can I get this information?

I tried to do it through

docker images -t

but this flag is deprecated in new versions of Docker. Is there a reliable source of such information?

+4
source share
2 answers

The docker tree is out of date before a good replacement has been proposed (see discussion in PR 5001 )

This is currently an outward expression justone/dockviz.

 alias dockviz="docker run --rm -v /var/run/docker.sock:/var/run/docker.sock nate/dockviz"

Information about the image is rendered by lines indicating the parent image:

dockviz images -d | dot -Tpng -o images.png

like a tree in the terminal:

$ dockviz images -t
└─511136ea3c5a Virtual Size: 0.0 B
  |─f10ebce2c0e1 Virtual Size: 103.7 MB
  | └─82cdea7ab5b5 Virtual Size: 103.9 MB
  ...
+14
source

dockerfile-from-image https://github.com/CenturyLinkLabs/dockerfile-from-image, Docker, FROM xxx

0

Source: https://habr.com/ru/post/1599666/


All Articles