0

I am creating a docker image based on Centos:

FROM centos:7
RUN yum install <package>

Is there a way I can get a listing of the files/directories installed in the image, beyond the initial centos starting image?

user422005
  • 1,989
  • 16
  • 34
  • 3
    Possible duplicate of [How to see docker image contents](https://stackoverflow.com/questions/44769315/how-to-see-docker-image-contents) – Christian Müller Sep 24 '19 at 13:06
  • A good way to see this might be to compare the initial image and your image via `container-diff` from google (https://github.com/GoogleContainerTools/container-diff) it supports file changes via the `--file` parameter. PS: I wrote a little python dependency differ here https://link.medium.com/ptfuH7Xaf0 – basti Sep 24 '19 at 13:54

1 Answers1

2

I assume you will find the answer here: How to see docker image contents

docker image history --no-trunc image_name > image_history

Should give you the history. Be aware to take the correct image. The RUN should create a new image file.

Valerio Bozz
  • 1,176
  • 16
  • 32