728x90
반응형
history 명령어를 통해서 이미지가 어떤 과정을 거쳐 생성되었는지 확인해볼수 있다.
아래와 같이 nginx 의 latest 이미지와 stable 이미지에 대한 내역을 비교해볼수 있다.
root@myserver-001:~# docker history nginx:stable
IMAGE CREATED CREATED BY SIZE COMMENT
c8d03f6b8b91 4 weeks ago /bin/sh -c #(nop) CMD ["nginx" "-g" "daemon… 0B
<missing> 4 weeks ago /bin/sh -c #(nop) STOPSIGNAL SIGQUIT 0B
<missing> 4 weeks ago /bin/sh -c #(nop) EXPOSE 80 0B
<missing> 4 weeks ago /bin/sh -c #(nop) ENTRYPOINT ["/docker-entr… 0B
<missing> 4 weeks ago /bin/sh -c #(nop) COPY file:09a214a3e07c919a… 4.61kB
<missing> 4 weeks ago /bin/sh -c #(nop) COPY file:0fd5fca330dcd6a7… 1.04kB
<missing> 4 weeks ago /bin/sh -c #(nop) COPY file:0b866ff3fc1ef5b0… 1.96kB
<missing> 4 weeks ago /bin/sh -c #(nop) COPY file:65504f71f5855ca0… 1.2kB
<missing> 4 weeks ago /bin/sh -c set -x && addgroup --system -… 63.9MB
<missing> 4 weeks ago /bin/sh -c #(nop) ENV PKG_RELEASE=1~buster 0B
<missing> 4 weeks ago /bin/sh -c #(nop) ENV NJS_VERSION=0.5.3 0B
<missing> 4 weeks ago /bin/sh -c #(nop) ENV NGINX_VERSION=1.20.1 0B
<missing> 4 weeks ago /bin/sh -c #(nop) LABEL maintainer=NGINX Do… 0B
<missing> 4 weeks ago /bin/sh -c #(nop) CMD ["bash"] 0B
<missing> 4 weeks ago /bin/sh -c #(nop) ADD file:910392427fdf089bc… 69.3MB
root@myserver-001:~# docker history nginx:latest
IMAGE CREATED CREATED BY SIZE COMMENT
04661cdce581 45 hours ago /bin/sh -c #(nop) CMD ["nginx" "-g" "daemon… 0B
<missing> 45 hours ago /bin/sh -c #(nop) STOPSIGNAL SIGQUIT 0B
<missing> 45 hours ago /bin/sh -c #(nop) EXPOSE 80 0B
<missing> 45 hours ago /bin/sh -c #(nop) ENTRYPOINT ["/docker-entr… 0B
<missing> 45 hours ago /bin/sh -c #(nop) COPY file:09a214a3e07c919a… 4.61kB
<missing> 45 hours ago /bin/sh -c #(nop) COPY file:0fd5fca330dcd6a7… 1.04kB
<missing> 45 hours ago /bin/sh -c #(nop) COPY file:0b866ff3fc1ef5b0… 1.96kB
<missing> 45 hours ago /bin/sh -c #(nop) COPY file:65504f71f5855ca0… 1.2kB
<missing> 45 hours ago /bin/sh -c set -x && addgroup --system -… 61.1MB
<missing> 45 hours ago /bin/sh -c #(nop) ENV PKG_RELEASE=1~bullseye 0B
<missing> 45 hours ago /bin/sh -c #(nop) ENV NJS_VERSION=0.7.0 0B
<missing> 45 hours ago /bin/sh -c #(nop) ENV NGINX_VERSION=1.21.4 0B
<missing> 45 hours ago /bin/sh -c #(nop) LABEL maintainer=NGINX Do… 0B
<missing> 4 weeks ago /bin/sh -c #(nop) CMD ["bash"] 0B
<missing> 4 weeks ago /bin/sh -c #(nop) ADD file:16dc2c6d1932194ed… 80.4MB
728x90
반응형
'Development > Docker&Kubernetes' 카테고리의 다른 글
[Docker] 컨테이너와 외부 디렉토리 연결하기 (0) | 2021.11.16 |
---|---|
[Docker] docker container ip 확인방법 (0) | 2021.11.15 |
[k8s] drain 명령어 (0) | 2021.11.04 |
taint, cordon 의 차이점은? (0) | 2021.11.04 |
[K8S] static pod 에 대해서 몇가지. (0) | 2021.02.04 |