通过docker 镜像反编译Dockerfile

目录

查看已有镜像

反编译 docker history 镜像名:tag


看不齐全,但能看出个大概

查看已有镜像

[root@warehouse00 ~]# docker images|grep golang
10.10.13.5:5001/cloudtogo-offical/golang-base                                              1.0                                        2b6aeafaee99        6 months ago        814MB

反编译 docker history 镜像名:tag

[root@warehouse00 ~]# docker history 10.10.13.5:5001/xx-offical/golang-base:1.0
IMAGE               CREATED             CREATED BY                                      SIZE                COMMENT
2b6aeafaee99        6 months ago        /bin/sh -c ln -sf /usr/share/zoneinfo/Asia/S…   33B                 
<missing>           6 months ago        /bin/sh -c #(nop)  MAINTAINER katy.xie@clo…   0B                  
<missing>           7 months ago        /bin/sh -c #(nop) WORKDIR /go                   0B                  
<missing>           7 months ago        /bin/sh -c mkdir -p "$GOPATH/src" "$GOPATH/b…   0B                  
<missing>           7 months ago        /bin/sh -c #(nop)  ENV PATH=/go/bin:/usr/loc…   0B                  
<missing>           7 months ago        /bin/sh -c #(nop)  ENV GOPATH=/go               0B                  
<missing>           7 months ago        /bin/sh -c set -eux;   dpkgArch="$(dpkg --pr…   339MB               
<missing>           7 months ago        /bin/sh -c #(nop)  ENV GOLANG_VERSION=1.12.10   0B                  
<missing>           7 months ago        /bin/sh -c apt-get update && apt-get install…   182MB               
<missing>           7 months ago        /bin/sh -c apt-get update && apt-get install…   145MB               
<missing>           7 months ago        /bin/sh -c set -ex;  if ! command -v gpg > /…   17.5MB              
<missing>           7 months ago        /bin/sh -c apt-get update && apt-get install…   16.5MB              
<missing>           7 months ago        /bin/sh -c #(nop)  CMD ["bash"]                 0B                  
<missing>           7 months ago        /bin/sh -c #(nop) ADD file:770e381defc5e4a0b…   114MB

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值