Docker 使用 dfimage 从镜像中提取 Dockerfile

Docker About 338 words

dfimage

dfimage是第三方的一款工具,由alpine从原作者取名为Whaler的项目重新打包而成的一个Docker镜像,使用Golang编写。

生成快捷方式

alias dfimage="docker run -v /var/run/docker.sock:/var/run/docker.sock --rm alpine/dfimage"

输出 Dockerfile

dfimage -sV=1.36 nginx:latest

备注

输出的信息包含了各个层的信息,需自己获取有用信息。

Alpine 版本

https://hub.docker.com/r/alpine/dfimage

开源地址

https://github.com/P3GLEG/Whaler

Views: 2,032 · Posted: 2022-12-04

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh