docker image 转换 docker file

这个是从每天的播报平台抓取到国外的信息发现的,感觉很实用。

博客原文,E文好的可以直接去看,https://samaritan.ai/blog/reversing-docker-images-into-dockerfiles/

code: https://github.com/sevck/WhaleTail

依赖,golang

cd $GOPATH/src
git clone https://github.com/P3GLEG/WhaleTail
go build .

help

./WhaleTail
Usage of ./WhaleTail:
  -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)
  -v    Print all details about the image
  -x    Save layers to current directory

 

posted @ 2018-06-06 18:43  sevck  阅读(858)  评论(0编辑  收藏  举报