WhaleTail是一个Go程序,用于将Docker镜像逆向工程化为Dockerfiles

网友投稿 927 2022-10-20

WhaleTail是一个Go程序,用于将docker镜像逆向工程化为Dockerfiles

WhaleTail是一个Go程序,用于将Docker镜像逆向工程化为Dockerfiles

Whaler

Whaler is a Go program which is designed to reverse engineer docker images into the Dockerfile that created it. It currently performs the following actions

Generates a Dockerfile from an ImageSearches added filenames for potential secret filesExtracts files that were added by the Docker ADD/COPY InstructionsIt also displays misc. information such as ports open, the user it runs as and environment variables.

You can read more about this on my blog Here

How to build it

Git clone the project into your $GOPATH/src directory and perform the following command

go get -u github.com/P3GLEG/Whalercd $GOPATH/src/github.com/P3GLEG/Whalergo build .

How to run it

./WhalerUsage of ./Whaler: -f string File containing images to analyze seperated by line -filter Filters filenames that create noise such as node_modules. Check ignore.go file for more details (default true) -sV string Set the docker client ID to a specific version -sV=1.36 -v Print all details about the image -x Save layers to current directory

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:移动混合模式应用开发(移动应用开发有哪三种模式)
下一篇:HDOJ 2768 - Cat vs. Dog 构图解二分图的最大独立集
相关文章

 发表评论

暂时没有评论,来抢沙发吧~