How do i see the different docker layers that make up an docker image?



  • Man page for docker history

    A docker image is made up of layers, to make a up a whole image. The docker history command can be used to see the layers.

    docker history docker      
    IMAGE               CREATED             CREATED BY                                      SIZE                COMMENT
    21df41782cc5        2 weeks ago         /bin/sh -c #(nop)  CMD ["sh"]                   0B                  
    <missing>           2 weeks ago         /bin/sh -c #(nop)  ENTRYPOINT ["docker-entry…   0B                  
    <missing>           2 weeks ago         /bin/sh -c #(nop) COPY file:232c7644a72835c7…   933B                
    <missing>           2 weeks ago         /bin/sh -c #(nop) COPY file:abb137d24130e7fa…   587B                
    <missing>           2 weeks ago         /bin/sh -c set -eux;   apkArch="$(apk --prin…   161MB               
    <missing>           2 weeks ago         /bin/sh -c #(nop)  ENV DOCKER_VERSION=18.09.0   0B                  
    <missing>           2 weeks ago         /bin/sh -c #(nop)  ENV DOCKER_CHANNEL=stable    0B                  
    <missing>           2 weeks ago         /bin/sh -c [ ! -e /etc/nsswitch.conf ] && ec…   17B                 
    <missing>           2 weeks ago         /bin/sh -c apk add --no-cache   ca-certifica…   556kB               
    <missing>           2 weeks ago         /bin/sh -c #(nop)  CMD ["/bin/sh"]              0B                  
    <missing>           2 weeks ago         /bin/sh -c #(nop) ADD file:2ff00caea4e83dfad…   4.41MB           
    

Log in to reply
 

© Lightnetics 2024