通过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                 
           6 months ago        /bin/sh -c #(nop)  MAINTAINER katy.xie@clo…   0B                  
           7 months ago        /bin/sh -c #(nop) WORKDIR /go                   0B                  
           7 months ago        /bin/sh -c mkdir -p "$GOPATH/src" "$GOPATH/b…   0B                  
           7 months ago        /bin/sh -c #(nop)  ENV PATH=/go/bin:/usr/loc…   0B                  
           7 months ago        /bin/sh -c #(nop)  ENV GOPATH=/go               0B                  
           7 months ago        /bin/sh -c set -eux;   dpkgArch="$(dpkg --pr…   339MB               
           7 months ago        /bin/sh -c #(nop)  ENV GOLANG_VERSION=1.12.10   0B                  
           7 months ago        /bin/sh -c apt-get update && apt-get install…   182MB               
           7 months ago        /bin/sh -c apt-get update && apt-get install…   145MB               
           7 months ago        /bin/sh -c set -ex;  if ! command -v gpg > /…   17.5MB              
           7 months ago        /bin/sh -c apt-get update && apt-get install…   16.5MB              
           7 months ago        /bin/sh -c #(nop)  CMD ["bash"]                 0B                  
           7 months ago        /bin/sh -c #(nop) ADD file:770e381defc5e4a0b…   114MB

 

你可能感兴趣的:(docker)