docker: how to show the diffs between 2 images

后端 未结 8 897
走了就别回头了
走了就别回头了 2021-01-30 10:33

I have a Dockerfile with a sequence of RUN instructions that execute \"apt-get install\"s; for example, a couple of lines:

RUN apt-get install -y tree
RUN apt-ge         


        
8条回答
  •  囚心锁ツ
    2021-01-30 10:51

    Have a look at :

    https://github.com/GoogleCloudPlatform/container-diff

    This tool can diff local or remote docker images and can do so without requiring docker to be installed. It has file as well as package level "differs" (for example: apt, npm, and pip) so that you can more easily see the differences in packages that have changed between two docker images.

    Disclaimer: I am a contributor to this project

提交回复
热议问题