如果我有本地docker映像。如何列出安装的内容? [英] If I have locally docker image. How Could I list what is installed on it?

查看:47
本文介绍了如果我有本地docker映像。如何列出安装的内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,我在本地具有此图像 https:// github.com/topflight-technology/docker-images/tree/master/go-testing 。然后系统丢失了有关它的所有信息。那么我们如何重新创建镜像docker文件呢?或者在列表中获取安装了哪些工具的列表。

For instance I have this image locally https://github.com/topflight-technology/docker-images/tree/master/go-testing. Then system lost all info about it. So how we could recreate the image docker file? Or at list get the list what tools are installed.

docker ps -a



CONTAINER ID        IMAGE                      COMMAND             CREATED             STATUS                      PORTS               NAMES
f047b64e79d1        topflighttech/go-testing   "/bin/sh"           28 seconds ago      Exited (0) 26 seconds ago                       friendly_leakey

所以我需要研究Docker容器或海峡前移映像吗?

So I need to investigate docker container or strait forward image?

推荐答案

您可以通过运行 docker history --no-trunc your_image:tag 来查看图像的历史记录。 。在没有其他可用资源的情况下,这可能有助于您重新创建Dockerfile。

You can see the history of an image by running docker history --no-trunc your_image:tag. With no other resource available, this might help you to recreate the Dockerfile.

这篇关于如果我有本地docker映像。如何列出安装的内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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