docker: how to show the diffs between 2 images

后端 未结 8 913
走了就别回头了
走了就别回头了 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:40

    I suppose you could send both images' file systems to tarballs via docker export CONTAINER_ID or docker save IMAGE_ID (updated based on comments)

    Then use whatever tool you like to diff the file systems - Git, Rdiff, etc.

提交回复
热议问题