• Home
  • Docker
  • Kubernetes
  • Java
  • Ubuntu
  • Maven
  • Big Data
  • CI
  • Install
  • Samples
  • Archived
Docker | Image Filesystem
  1. Inspect Image Filesystem
  2. Show the history of an image

  1. Inspect Image Filesystem
    To inspect an image, use the command "image inspect" (the Linux jq command pretty-prints the json output):

    You can look at the "GraphDriver.Data" element in the json output and use the data directories to list the contents of the image:

    The "RootFS.Layers" element list the image layers:
  2. Show the history of an image
    Let's have a look at the image history:

    The alpine docker image contains only the layers of the base image (alpine) and the layer of the COPY instruction.
© 2025  mtitek