{"id":3965,"date":"2021-05-24T20:49:08","date_gmt":"2021-05-24T11:49:08","guid":{"rendered":"https:\/\/tech.akat.info\/?p=3965"},"modified":"2021-05-24T20:50:49","modified_gmt":"2021-05-24T11:50:49","slug":"docker-history-%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%81%a7%e9%80%94%e5%88%87%e3%82%8c%e3%82%8b%e9%a0%85%e7%9b%ae%e3%82%92%e3%81%99%e3%81%b9%e3%81%a6%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b-no-trunc","status":"publish","type":"post","link":"https:\/\/tech.akat.info\/?p=3965","title":{"rendered":"docker history \u30b3\u30de\u30f3\u30c9\u3067\u9014\u5207\u308c\u308b\u9805\u76ee\u3092\u3059\u3079\u3066\u8868\u793a\u3059\u308b(no-trunc)"},"content":{"rendered":"<p>docker hisotry \u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u6642\u306b CREATED BY \u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u9014\u5207\u308c\u308b(\u3059\u3079\u3066\u8868\u793a\u3055\u308c\u306a\u3044)\u3053\u3068\u304c\u591a\u3044\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# docker history nginx\r\nIMAGE          CREATED       CREATED BY                                      SIZE      COMMENT\r\nf0b8a9a54136   12 days ago   \/bin\/sh -c #(nop)  CMD &#x5B;&quot;nginx&quot; &quot;-g&quot; &quot;daemon\u2026   0B\r\n&lt;missing&gt;      12 days ago   \/bin\/sh -c #(nop)  STOPSIGNAL SIGQUIT           0B\r\n&lt;missing&gt;      12 days ago   \/bin\/sh -c #(nop)  EXPOSE 80                    0B\r\n&lt;missing&gt;      12 days ago   \/bin\/sh -c #(nop)  ENTRYPOINT &#x5B;&quot;\/docker-entr\u2026   0B\r\n&lt;missing&gt;      12 days ago   \/bin\/sh -c #(nop) COPY file:09a214a3e07c919a\u2026   4.61kB\r\n&lt;missing&gt;      12 days ago   \/bin\/sh -c #(nop) COPY file:0fd5fca330dcd6a7\u2026   1.04kB\r\n&lt;missing&gt;      12 days ago   \/bin\/sh -c #(nop) COPY file:0b866ff3fc1ef5b0\u2026   1.96kB\r\n&lt;missing&gt;      12 days ago   \/bin\/sh -c #(nop) COPY file:65504f71f5855ca0\u2026   1.2kB\r\n&lt;missing&gt;      12 days ago   \/bin\/sh -c set -x     &amp;&amp; addgroup --system -\u2026   63.9MB\r\n&lt;missing&gt;      12 days ago   \/bin\/sh -c #(nop)  ENV PKG_RELEASE=1~buster     0B\r\n&lt;missing&gt;      12 days ago   \/bin\/sh -c #(nop)  ENV NJS_VERSION=0.5.3        0B\r\n&lt;missing&gt;      12 days ago   \/bin\/sh -c #(nop)  ENV NGINX_VERSION=1.19.10    0B\r\n&lt;missing&gt;      12 days ago   \/bin\/sh -c #(nop)  LABEL maintainer=NGINX Do\u2026   0B\r\n&lt;missing&gt;      12 days ago   \/bin\/sh -c #(nop)  CMD &#x5B;&quot;bash&quot;]                 0B\r\n&lt;missing&gt;      12 days ago   \/bin\/sh -c #(nop) ADD file:7362e0e50f30ff454\u2026   69.3MB\r\n<\/pre>\n<p>\u30aa\u30d7\u30b7\u30e7\u30f3(no-trunc)\u306b\u3066\u3059\u3079\u3066\u8868\u793a\u3055\u308c\u3001\u9014\u5207\u308c\u306a\u304f\u306a\u308b\u3002<br \/>\n\u5927\u304d\u304f\u753b\u9762\u304c\u5d29\u308c\u308b\u5834\u5408\u306f\u3001<a href=\"https:\/\/docs.docker.com\/engine\/reference\/commandline\/history\/\">\u516c\u5f0f\u30da\u30fc\u30b8<\/a>\u3092\u53c2\u8003\u306b\u3001\u9805\u76ee\u3092\u5236\u9650\u3059\u308b\u3053\u3068\u3067\u3042\u308b\u7a0b\u5ea6\u898b\u308c\u308b\u5f62\u306b\u306a\u3063\u305f\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# docker history --format &quot;{{.ID}}: {{.Size}}: {{.CreatedBy}}&quot; --no-trunc nginx\r\nsha256:f0b8a9a541369db503ff3b9d4fa6de561b300f7363920c2bff4577c6c24c5cf6: 0B: \/bin\/sh -c #(nop)  CMD &#x5B;&quot;nginx&quot; &quot;-g&quot; &quot;daemon off;&quot;]\r\n&lt;missing&gt;: 0B: \/bin\/sh -c #(nop)  STOPSIGNAL SIGQUIT\r\n&lt;missing&gt;: 0B: \/bin\/sh -c #(nop)  EXPOSE 80\r\n&lt;missing&gt;: 0B: \/bin\/sh -c #(nop)  ENTRYPOINT &#x5B;&quot;\/docker-entrypoint.sh&quot;]\r\n&lt;missing&gt;: 4.61kB: \/bin\/sh -c #(nop) COPY file:09a214a3e07c919af2fb2d7c749ccbc446b8c10eb217366e5a65640ee9edcc25 in \/docker-entrypoint.d\r\n&lt;missing&gt;: 1.04kB: \/bin\/sh -c #(nop) COPY file:0fd5fca330dcd6a7de297435e32af634f29f7132ed0550d342cad9fd20158258 in \/docker-entrypoint.d\r\n&lt;missing&gt;: 1.96kB: \/bin\/sh -c #(nop) COPY file:0b866ff3fc1ef5b03c4e6c8c513ae014f691fb05d530257dfffd07035c1b75da in \/docker-entrypoint.d\r\n&lt;missing&gt;: 1.2kB: \/bin\/sh -c #(nop) COPY file:65504f71f5855ca017fb64d502ce873a31b2e0decd75297a8fb0a287f97acf92 in \/\r\n&lt;missing&gt;: 63.9MB: \/bin\/sh -c set -x     &amp;&amp; addgroup --system --gid 101 nginx     &amp;&amp; adduser --system --disabled-login --ingroup nginx --no-create-home --home \/nonexistent --gecos &quot;nginx user&quot; --shell \/bin\/false --uid 101 nginx     &amp;&amp; apt-get update     &amp;&amp; apt-get install --no-install-recommends --no-install-suggests -y gnupg1 ca-certificates     &amp;&amp;     NGINX_GPGKEY=573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62;     found='';     for server in         ha.pool.sks-keyservers.net         hkp:\/\/keyserver.ubuntu.com:80         hkp:\/\/p80.pool.sks-keyservers.net:80         pgp.mit.edu     ; do         echo &quot;Fetching GPG key $NGINX_GPGKEY from $server&quot;;         apt-key adv --keyserver &quot;$server&quot; --keyserver-options timeout=10 --recv-keys &quot;$NGINX_GPGKEY&quot; &amp;&amp; found=yes &amp;&amp; break;     done;     test -z &quot;$found&quot; &amp;&amp; echo &gt;&amp;2 &quot;error: failed to fetch GPG key $NGINX_GPGKEY&quot; &amp;&amp; exit 1;     apt-get remove --purge --auto-remove -y gnupg1 &amp;&amp; rm -rf \/var\/lib\/apt\/lists\/*     &amp;&amp; dpkgArch=&quot;$(dpkg --print-architecture)&quot;     &amp;&amp; nginxPackages=&quot;         nginx=${NGINX_VERSION}-${PKG_RELEASE}         nginx-module-xslt=${NGINX_VERSION}-${PKG_RELEASE}         nginx-module-geoip=${NGINX_VERSION}-${PKG_RELEASE}         nginx-module-image-filter=${NGINX_VERSION}-${PKG_RELEASE}         nginx-module-njs=${NGINX_VERSION}+${NJS_VERSION}-${PKG_RELEASE}     &quot;     &amp;&amp; case &quot;$dpkgArch&quot; in         amd64|i386|arm64)             echo &quot;deb https:\/\/nginx.org\/packages\/mainline\/debian\/ buster nginx&quot; &gt;&gt; \/etc\/apt\/sources.list.d\/nginx.list             &amp;&amp; apt-get update             ;;         *)             echo &quot;deb-src https:\/\/nginx.org\/packages\/mainline\/debian\/ buster nginx&quot; &gt;&gt; \/etc\/apt\/sources.list.d\/nginx.list                         &amp;&amp; tempDir=&quot;$(mktemp -d)&quot;             &amp;&amp; chmod 777 &quot;$tempDir&quot;                         &amp;&amp; savedAptMark=&quot;$(apt-mark showmanual)&quot;                         &amp;&amp; apt-get update             &amp;&amp; apt-get build-dep -y $nginxPackages             &amp;&amp; (                 cd &quot;$tempDir&quot;                 &amp;&amp; DEB_BUILD_OPTIONS=&quot;nocheck parallel=$(nproc)&quot;                     apt-get source --compile $nginxPackages             )                         &amp;&amp; apt-mark showmanual | xargs apt-mark auto &gt; \/dev\/null             &amp;&amp; { &#x5B; -z &quot;$savedAptMark&quot; ] || apt-mark manual $savedAptMark; }                         &amp;&amp; ls -lAFh &quot;$tempDir&quot;             &amp;&amp; ( cd &quot;$tempDir&quot; &amp;&amp; dpkg-scanpackages . &gt; Packages )             &amp;&amp; grep '^Package: ' &quot;$tempDir\/Packages&quot;             &amp;&amp; echo &quot;deb &#x5B; trusted=yes ] file:\/\/$tempDir .\/&quot; &gt; \/etc\/apt\/sources.list.d\/temp.list             &amp;&amp; apt-get -o Acquire::GzipIndexes=false update             ;;     esac         &amp;&amp; apt-get install --no-install-recommends --no-install-suggests -y                         $nginxPackages                         gettext-base                         curl     &amp;&amp; apt-get remove --purge --auto-remove -y &amp;&amp; rm -rf \/var\/lib\/apt\/lists\/* \/etc\/apt\/sources.list.d\/nginx.list         &amp;&amp; if &#x5B; -n &quot;$tempDir&quot; ]; then         apt-get purge -y --auto-remove         &amp;&amp; rm -rf &quot;$tempDir&quot; \/etc\/apt\/sources.list.d\/temp.list;     fi     &amp;&amp; ln -sf \/dev\/stdout \/var\/log\/nginx\/access.log     &amp;&amp; ln -sf \/dev\/stderr \/var\/log\/nginx\/error.log     &amp;&amp; mkdir \/docker-entrypoint.d\r\n&lt;missing&gt;: 0B: \/bin\/sh -c #(nop)  ENV PKG_RELEASE=1~buster\r\n&lt;missing&gt;: 0B: \/bin\/sh -c #(nop)  ENV NJS_VERSION=0.5.3\r\n&lt;missing&gt;: 0B: \/bin\/sh -c #(nop)  ENV NGINX_VERSION=1.19.10\r\n&lt;missing&gt;: 0B: \/bin\/sh -c #(nop)  LABEL maintainer=NGINX Docker Maintainers &lt;docker-maint@nginx.com&gt;\r\n&lt;missing&gt;: 0B: \/bin\/sh -c #(nop)  CMD &#x5B;&quot;bash&quot;]\r\n&lt;missing&gt;: 69.3MB: \/bin\/sh -c #(nop) ADD file:7362e0e50f30ff45463ea38bb265cb8f6b7cd422eb2d09de7384efa0b59614be in \/\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>docker hisotry \u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u6642\u306b CREATED BY \u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u9014\u5207\u308c\u308b(\u3059\u3079\u3066\u8868\u793a\u3055\u308c\u306a\u3044)\u3053\u3068\u304c\u591a\u3044\u3002 # docker history nginx IMAGE CREATED CREATED B [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[72],"tags":[],"_links":{"self":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/3965"}],"collection":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3965"}],"version-history":[{"count":3,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/3965\/revisions"}],"predecessor-version":[{"id":3968,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/3965\/revisions\/3968"}],"wp:attachment":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3965"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3965"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3965"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}