在没有原始 Dockerfile 的情况下为另一个架构构建现有的 Docker 映像
我有一个用于 linux/amd64
的旧 Docker 映像,我需要为 linux/arm64
构建该映像(以使其在 M1 Mac 上运行)。
问题是没有Dockerfile
。多年来,随着对其进行的更改,该镜像一直使用 docker commit 进行更新。
有没有办法拍摄新快照,但针对另一种架构(我想没有)?否则我还有什么选择?
有问题的图像是 Cassandra 用于本地开发的自定义设置,我真的不确定它有什么配置,所以如果可能的话,我想避免从头开始设置它。
I've got an old Docker image for linux/amd64
that I need to build for linux/arm64
(to make it run on an M1 Mac).
The problem is that there is no Dockerfile
. The image has been updated throughout the years using docker commit
as changes have been made to it.
Is there a way of taking a new snapshot, but for another architecture (I guess not)? What options do I have otherwise?
The image in question is a custom setup of Cassandra for local development, and I'm really not sure what configuration it has, so I'd like to avoid setting it up from scratch if possible.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为了以可读的方式从 docker 历史记录中获取信息,以下 (bash) 命令帮助了我。只需将您的图像和标签放在
--no-trunc
之后还有一个图像作为一个不错的工具:Docker Hub 上的参考
基本上:
To get the information from
docker history
in a readable manner the following (bash) command helped me. Just put your Image and Tag after--no-trunc
There is also an image as a nice tool: Reference on Docker Hub
Basically: