A useful command to view the size of the layers is docker history
For example
$ docker history nginx:alpine
IMAGE CREATED CREATED BY SIZE COMMENT
a6eb2a334a9f 5 days ago /bin/sh -c#(nop) CMD ["nginx" "-g" "daemon… 0B
<missing> 5 days ago /bin/sh -c#(nop) STOPSIGNAL SIGQUIT 0B
<missing> 5 days ago /bin/sh -c#(nop) EXPOSE 80 0B
<missing> 5 days ago /bin/sh -c#(nop) ENTRYPOINT ["/docker-entr… 0B
<missing> 5 days ago /bin/sh -c#(nop) COPY file:09a214a3e07c919a… 4.61kB
<missing> 5 days ago /bin/sh -c#(nop) COPY file:0fd5fca330dcd6a7… 1.04kB
<missing> 5 days ago /bin/sh -c#(nop) COPY file:0b866ff3fc1ef5b0… 1.96kB
<missing> 5 days ago /bin/sh -c#(nop) COPY file:65504f71f5855ca0… 1.2kB
<missing> 5 days ago /bin/sh -cset-x&& addgroup -g 101 -S … 17MB
<missing> 5 days ago /bin/sh -c#(nop) ENV PKG_RELEASE=1 0B
<missing> 5 days ago /bin/sh -c#(nop) ENV NJS_VERSION=0.5.3 0B
<missing> 5 days ago /bin/sh -c#(nop) ENV NGINX_VERSION=1.21.0 0B
<missing> 6 weeks ago /bin/sh -c#(nop) LABEL maintainer=NGINX Do… 0B
<missing> 6 weeks ago /bin/sh -c#(nop) CMD ["/bin/sh"] 0B
<missing> 6 weeks ago /bin/sh -c#(nop) ADD file:8ec69d882e7f29f06… 5.61MB
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
A useful command to view the size of the layers is docker history
For example