如何在不运行Docker的情况下浏览它 [英] how to browse docker image without running it?

查看:74
本文介绍了如何在不运行Docker的情况下浏览它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么有任何使用ssh或等效工具浏览docker映像的原因?我的动机是使用超越比较来比较两个docker映像

我对仅列出文件名不感兴趣,我需要内容,并且希望能够比较两个图像,包括文件的内容.

解决方案

如果要浏览的是docker映像,则可以使用名为

Is there any why to browse a docker image using ssh or equivalent? My motivation is to compare two docker images using beyond compare

edit: i am not interested in just listing file names, I need the content and I would like to be able compare two images, including content of the files.

解决方案

If what you want is exploring a docker image then you can use a tool named dive.

You cannot directly compare files content but at least you can browse layer contents and see which files have been added/removed/modified/unmodified.

To analyze a Docker image simply run:

dive <your_image>

这篇关于如何在不运行Docker的情况下浏览它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆