{"id":3971,"date":"2021-05-24T23:12:55","date_gmt":"2021-05-24T14:12:55","guid":{"rendered":"https:\/\/tech.akat.info\/?p=3971"},"modified":"2021-05-24T23:14:23","modified_gmt":"2021-05-24T14:14:23","slug":"ubuntu-18-04-lts%e3%81%a7-docker%e3%81%ae%e4%be%bf%e5%88%a9%e3%83%84%e3%83%bc%e3%83%ab%e8%a9%a6%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9fdive","status":"publish","type":"post","link":"https:\/\/tech.akat.info\/?p=3971","title":{"rendered":"Ubuntu 18.04 LTS\u3067 Docker\u306e\u4fbf\u5229\u30c4\u30fc\u30eb\u8a66\u3057\u3066\u307f\u305f(dive)"},"content":{"rendered":"<p><a href=\"https:\/\/wonderwall.hatenablog.com\/entry\/docker-awesome\">Docker\u30e1\u30e2 : awesome-docker\u3067\u7d39\u4ecb\u3055\u308c\u3066\u3044\u308bDocker\u95a2\u9023\u306e\u4fbf\u5229\u30c4\u30fc\u30eb<\/a>\u3067\u77e5\u3089\u306a\u304b\u3063\u305f\u30c4\u30fc\u30eb\u3092\u8a66\u3057\u3066\u307f\u305f\u3002<\/p>\n<p>dive\u306f\u30a4\u30e1\u30fc\u30b8\u3084\u30ec\u30a4\u30e4\u30fc\u3092\u5206\u6790\u3057\u3066\u3001\u30a4\u30e1\u30fc\u30b8\u3092\u8efd\u91cf\u5316\u3059\u308b\u624b\u52a9\u3051\u3092\u3059\u308b\u30c4\u30fc\u30eb\u3002<br \/>\n\u4ee5\u4e0b\u306f\u74b0\u5883\u60c5\u5831\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# cat \/etc\/lsb-release\r\nDISTRIB_ID=Ubuntu\r\nDISTRIB_RELEASE=18.04\r\nDISTRIB_CODENAME=bionic\r\nDISTRIB_DESCRIPTION=&quot;Ubuntu 18.04.5 LTS&quot;\r\n# docker --version\r\nDocker version 20.10.6, build 370c289\r\n<\/pre>\n<h2>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# wget https:\/\/github.com\/wagoodman\/dive\/releases\/download\/v0.9.2\/dive_0.9.2_linux_amd64.deb\r\n# apt install .\/dive_0.9.2_linux_amd64.deb\r\n# dpkg -l | grep dive\r\nii  dive                                   0.9.2                                           amd64        no description given\r\n# dive --version\r\ndive 0.9.2\r\n<\/pre>\n<h2>dive\u3092\u4f7f\u3063\u3066\u307f\u308b<\/h2>\n<p>\u30a4\u30e1\u30fc\u30b8\u540d\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u7d50\u679c\u304c\u8868\u793a\u3055\u308c\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# dive nginx\r\n<\/pre>\n<p><a href=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2021\/05\/2021-05-24_230548.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2021\/05\/2021-05-24_230548-300x160.jpg\" alt=\"\" width=\"300\" height=\"160\" class=\"alignnone size-medium wp-image-3972\" srcset=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2021\/05\/2021-05-24_230548-300x160.jpg 300w, https:\/\/tech.akat.info\/wp-content\/uploads\/2021\/05\/2021-05-24_230548-1024x545.jpg 1024w, https:\/\/tech.akat.info\/wp-content\/uploads\/2021\/05\/2021-05-24_230548-768x409.jpg 768w, https:\/\/tech.akat.info\/wp-content\/uploads\/2021\/05\/2021-05-24_230548-1536x818.jpg 1536w, https:\/\/tech.akat.info\/wp-content\/uploads\/2021\/05\/2021-05-24_230548-2048x1090.jpg 2048w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n<a href=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2021\/05\/2021-05-24_230448.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2021\/05\/2021-05-24_230448-300x98.jpg\" alt=\"\" width=\"300\" height=\"98\" class=\"alignnone size-medium wp-image-3973\" srcset=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2021\/05\/2021-05-24_230448-300x98.jpg 300w, https:\/\/tech.akat.info\/wp-content\/uploads\/2021\/05\/2021-05-24_230448-1024x335.jpg 1024w, https:\/\/tech.akat.info\/wp-content\/uploads\/2021\/05\/2021-05-24_230448-768x251.jpg 768w, https:\/\/tech.akat.info\/wp-content\/uploads\/2021\/05\/2021-05-24_230448-1536x503.jpg 1536w, https:\/\/tech.akat.info\/wp-content\/uploads\/2021\/05\/2021-05-24_230448-2048x670.jpg 2048w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n\u30a4\u30e1\u30fc\u30b8\u3092\u3069\u306e\u3088\u3046\u306b\u69cb\u7bc9\u3057\u305f\u304b\u3092\u78ba\u8a8d\u3067\u304d\u308bdocker history\u3068\u7570\u306a\u3063\u3066\u4ee5\u4e0b\u306e\u7279\u5fb4\u304c\u3042\u308b\u3002<br \/>\n\u30fb\u5de6\u4e0b[Image Details]\u306b\u3066\u524a\u9664\u3067\u304d\u305d\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u78ba\u8a8d\u53ef\u80fd\u3002<br \/>\n\u30fb\u53f3\u5074[Current Layer Contents]\u306b\u3066\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u9020\u304c\u95b2\u89a7\u53ef\u80fd\u3002\u8ffd\u52a0\u3055\u308c\u305f\u3082\u306e\u306f\u7dd1\u8272\u3001\u5909\u66f4\u306f\u9ec4\u8272\u3067\u78ba\u8a8d\u53ef\u80fd\u3002<br \/>\n\u3053\u308c\u3089\u306e\u60c5\u5831\u304b\u3089\u4e0d\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308b\u3088\u3046\u306bDockerfile\u306a\u3069\u3092\u4fee\u6b63\u3059\u308b\u3002<\/p>\n<h3>\u53c2\u8003\uff1adocker hisotry \u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u6642<\/h3>\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","protected":false},"excerpt":{"rendered":"<p>Docker\u30e1\u30e2 : awesome-docker\u3067\u7d39\u4ecb\u3055\u308c\u3066\u3044\u308bDocker\u95a2\u9023\u306e\u4fbf\u5229\u30c4\u30fc\u30eb\u3067\u77e5\u3089\u306a\u304b\u3063\u305f\u30c4\u30fc\u30eb\u3092\u8a66\u3057\u3066\u307f\u305f\u3002 dive\u306f\u30a4\u30e1\u30fc\u30b8\u3084\u30ec\u30a4\u30e4\u30fc\u3092\u5206\u6790\u3057\u3066\u3001\u30a4\u30e1\u30fc\u30b8\u3092\u8efd\u91cf\u5316\u3059\u308b\u624b\u52a9\u3051\u3092\u3059\u308b\u30c4\u30fc\u30eb\u3002 \u4ee5\u4e0b\u306f\u74b0 [&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\/3971"}],"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=3971"}],"version-history":[{"count":2,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/3971\/revisions"}],"predecessor-version":[{"id":3975,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/3971\/revisions\/3975"}],"wp:attachment":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}