Entendendo melhor a sua imagem

$ docker image ls
REPOSITORY              TAG       IMAGE ID       CREATED          SIZE
conversao-temperatura   latest    ad6bf598faaf   11 minutes ago   377MB
ubuntu                  latest    35a88802559d   2 months ago     78.1MB

A imagem conversao-temperatura possui tamanho grande.

Verificar o histórico de construção de uma imagem:

$ docker image history ubuntu
IMAGE          CREATED        CREATED BY                                      SIZE      COMMENT
35a88802559d   2 months ago   /bin/sh -c #(nop)  CMD ["/bin/bash"]            0B
<missing>      2 months ago   /bin/sh -c #(nop) ADD file:5601f441718b0d192…   78.1MB
<missing>      2 months ago   /bin/sh -c #(nop)  LABEL org.opencontainers.…   0B
<missing>      2 months ago   /bin/sh -c #(nop)  LABEL org.opencontainers.…   0B
<missing>      2 months ago   /bin/sh -c #(nop)  ARG LAUNCHPAD_BUILD_ARCH     0B
<missing>      2 months ago   /bin/sh -c #(nop)  ARG RELEASE                  0B

A imagem conversao-temperatura herda as camadas do ubuntu e adiciona uma camada referente ao container origem:

$ docker image history conversao-temperatura
IMAGE          CREATED          CREATED BY                                      SIZE      COMMENT
ad6bf598faaf   14 minutes ago   /bin/bash                                       299MB
35a88802559d   2 months ago     /bin/sh -c #(nop)  CMD ["/bin/bash"]            0B
<missing>      2 months ago     /bin/sh -c #(nop) ADD file:5601f441718b0d192…   78.1MB
<missing>      2 months ago     /bin/sh -c #(nop)  LABEL org.opencontainers.…   0B
<missing>      2 months ago     /bin/sh -c #(nop)  LABEL org.opencontainers.…   0B
<missing>      2 months ago     /bin/sh -c #(nop)  ARG LAUNCHPAD_BUILD_ARCH     0B
<missing>      2 months ago     /bin/sh -c #(nop)  ARG RELEASE                  0B

Filesystem do Ubuntu (lowerdir):

Filesystem adicionado (upperdir):

Last updated