docker history's Examples

Shows the history of a docker image with the image name mentioned in the command.

$ docker history httpd

IMAGE               CREATED             CREATED BY                                      SIZE                COMMENT

ee39f68eb241        2 days ago          /bin/sh -c #(nop)  CMD ["httpd-foreground"]     0B

<missing>           2 days ago          /bin/sh -c #(nop)  EXPOSE 80                    0B

<missing>           2 days ago          /bin/sh -c #(nop) COPY file:c432ff61c4993ecd…   138B

<missing>           4 days ago          /bin/sh -c set -eux;   savedAptMark="$(apt-m…   49.1MB

<missing>           4 days ago          /bin/sh -c #(nop)  ENV HTTPD_PATCHES=           0B

<missing>           4 days ago          /bin/sh -c #(nop)  ENV HTTPD_SHA256=b4ca9d05…   0B

<missing>           4 days ago          /bin/sh -c #(nop)  ENV HTTPD_VERSION=2.4.39     0B

<missing>           4 days ago          /bin/sh -c set -eux;  apt-get update;  apt-g…   35.4MB

<missing>           4 days ago          /bin/sh -c #(nop) WORKDIR /usr/local/apache2    0B

<missing>           4 days ago          /bin/sh -c mkdir -p "$HTTPD_PREFIX"  && chow…   0B

<missing>           4 days ago          /bin/sh -c #(nop)  ENV PATH=/usr/local/apach…   0B

<missing>           4 days ago          /bin/sh -c #(nop)  ENV HTTPD_PREFIX=/usr/loc…   0B

<missing>           5 days ago          /bin/sh -c #(nop)  CMD ["bash"]                 0B

<missing>           5 days ago          /bin/sh -c #(nop) ADD file:71ac26257198ecf6a…   69.2MB

docker history [OPTIONS] IMAGE
 docker history httpd

DevOpsSchool
Typically replies within an hour

DevOpsSchool
Hi there 👋

How can I help you?
×
Chat with Us