{"id":1106,"date":"2022-01-07T22:47:37","date_gmt":"2022-01-07T13:47:37","guid":{"rendered":"https:\/\/aiacademy.jp\/media\/?p=1106"},"modified":"2023-03-31T16:53:54","modified_gmt":"2023-03-31T07:53:54","slug":"%e3%80%90%e5%88%9d%e5%bf%83%e8%80%85%e5%90%91%e3%81%91%e3%80%91docker%ef%bc%88%e3%83%89%e3%83%83%e3%82%ab%e3%83%bc%ef%bc%89%e3%81%a8%e3%81%af%e4%bd%95%e3%81%8b%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/aiacademy.jp\/media\/?p=1106","title":{"rendered":"\u3010\u521d\u5fc3\u8005\u5411\u3051\u3011Docker\uff08\u30c9\u30c3\u30ab\u30fc\uff09\u3068\u306f\u4f55\u304b\uff1f"},"content":{"rendered":"\n<div class=\"toc\">    <div id=\"toc_container\" class=\"sgb-toc--no-bullets js-smooth-scroll\" data-dialog-title=\"Table of Contents\">\n      <p class=\"toc_title\">\u76ee\u6b21 <\/p>\n      <ul class=\"toc_list\">  <li class=\"first\">    <span><\/span>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-0\">Docker\u3068\u306f<\/a>      <\/li>      <li>        <a href=\"#i-1\">\u30a4\u30e1\u30fc\u30b8\u3068\u30b3\u30f3\u30c6\u30ca<\/a>      <\/li>      <li>        <a href=\"#i-2\">Docker\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-3\">Docker Hub\u306e\u767b\u9332<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-4\">Docker\u30b3\u30f3\u30c6\u30ca\u3092\u5b9f\u884c\u3057\u3066\u307f\u3088\u3046<\/a>  <\/li>  <li class=\"last\">    <a href=\"#i-5\">Docker\u3092\u5b66\u3076\u306b\u306f<\/a>  <\/li><\/ul>\n      \n    <\/div><\/div><div class=\"toc\"><p><\/p>\n<\/div><h2 class=\"wp-block-heading\" id=\"i-0\">Docker\u3068\u306f<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/aiacademy.jp\/assets\/images_test\/333_16d73bac4c6.png\" alt=\"\"><\/figure>\n\n\n\n<p>Docker\uff08\u30c9\u30c3\u30ab\u30fc\uff09\u3068\u306f\u8efd\u91cf\u306a\u30b3\u30f3\u30c6\u30ca\u578b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5b9f\u884c\u74b0\u5883\u3067\u3059\u3002Docker\u306e\u8aac\u660e\u3092\u805e\u304f\u3068\u96e3\u3057\u304f\u611f\u3058\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001Docker\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001OS\u5185\u90e8\u306b\u72ec\u7acb\u3057\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5b9f\u884c\u74b0\u5883\uff08\u30b3\u30f3\u30c6\u30ca\uff09\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u3001\u3044\u3064\u3067\u3082\u305d\u306e\u74b0\u5883\u3092\u7acb\u3061\u4e0a\u3052\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4f8b\u3048\u3070Docker\u3092\u4f7f\u308f\u306a\u3044\u65e7\u6765\u578b\u306e\u74b0\u5883\u69cb\u7bc9\u306e\u5834\u5408\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u8003\u306b\u5fc5\u8981\u306a\u30c4\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3044\u3046\u3084\u308a\u65b9\u3067\u3059\u304c\u3001\u540c\u3058\u74b0\u5883\u3092\u4f55\u5ea6\u3082\u69cb\u7bc9\u3059\u308b\u3068\u3044\u3046\u70b9\u3067\u76f8\u5f53\u5927\u5909\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3057\u304b\u3057\u3001Docker\u3092\u5229\u7528\u3059\u308b\u3068\u3001\u6b21\u7ae0\u3067\u8aac\u660e\u3059\u308bDockerfile\u306b\u74b0\u5883\u69cb\u7bc9\u306b\u5fc5\u8981\u306a\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u3001\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u7d20\u65e9\u304f\u540c\u3058\u74b0\u5883\u3092\u4f5c\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002\u8907\u6570\u4eba\u958b\u767a\u3067\u540c\u3058\u958b\u767a\u74b0\u5883\u3092\u4e00\u77ac\u306b\u63c3\u3048\u308b\u3053\u3068\u304c\u51fa\u6765\u308b\u305f\u3081\u3001\u8fd1\u5e74\u5927\u5909\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>&nbsp;<a rel=\"noreferrer noopener nofollow\" href=\"https:\/\/docs.docker.com\/\" target=\"_blank\">\u516c\u5f0f\u30b5\u30a4\u30c8<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-1\">\u30a4\u30e1\u30fc\u30b8\u3068\u30b3\u30f3\u30c6\u30ca<\/h2>\n\n\n\n<p>Docker\u3092\u5229\u7528\u3059\u308b\u524d\u306b\u3001\u5927\u4e8b\u306a\u7528\u8a9e\u3067\u3042\u308b\u30a4\u30e1\u30fc\u30b8\u3068\u30b3\u30f3\u30c6\u30ca\u306b\u95a2\u3057\u3066\u62bc\u3055\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>&nbsp;Docker\u30a4\u30e1\u30fc\u30b8\uff08image\uff09\u3068\u306fOS\u3084\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\uff08\u30d5\u30a1\u30a4\u30eb\uff09\u306e\u3053\u3068\u3067\u3059\u3002&nbsp;\u30b3\u30f3\u30c6\u30ca\uff08\u30b5\u30fc\u30d0\u30fc\uff09\u3068\u306f\u30a4\u30e1\u30fc\u30b8\u304b\u3089\u751f\u6210\u3055\u308c\u305f\u4eee\u60f3\u30b5\u30fc\u30d0\u30fc\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-2\">Docker\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n<p>Docker\u306b\u306f\u7121\u6599\u7248\u306eDocker Community Edition(Docker CE)\u3068\u6709\u6599\u7248\u306eDocker Enterprise Edition(Docker EE)\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u3053\u3067\u306f\u7121\u6599\u7248\u306eDocker Community Edition\u3092\u5229\u7528\u3057\u307e\u3059\u3002&nbsp;<\/p>\n\n\n\n<p>Docker\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3001Mac\u306e\u65b9\u306f<a rel=\"noreferrer noopener nofollow\" href=\"https:\/\/hub.docker.com\/editions\/community\/docker-ce-desktop-mac\/\" target=\"_blank\">\u3053\u3061\u3089<\/a>\u3001Windows\u306e\u65b9\u306f<a rel=\"noreferrer noopener nofollow\" href=\"http:\/\/hub.docker.com\/editions\/community\/docker-ce-desktop-windows\" target=\"_blank\">\u3053\u3061\u3089<\/a>\u304b\u3089\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-3\">Docker Hub\u306e\u767b\u9332<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/aiacademy.jp\/assets\/images_test\/333_16d73bb6ff7.png\" alt=\"\"><\/figure>\n\n\n\n<p>\u3053\u3053\u3067\u306f\u3001Docker\u30a4\u30e1\u30fc\u30b8\u3092\u5171\u6709\u30fb\u7ba1\u7406\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b<a rel=\"noreferrer noopener nofollow\" href=\"https:\/\/hub.docker.com\/\" target=\"_blank\">Docker Hub<\/a>\u3068\u3044\u3046\u30b5\u30fc\u30d3\u30b9\u306b\u767b\u9332\u3057\u307e\u3059\u3002&nbsp;\u30a2\u30ab\u30a6\u30f3\u30c8\u4f5c\u6210\u5f8c\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3084\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\uff08shell\uff09\u304b\u3089\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">docker login<\/pre>\n\n\n\n<p>username\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308c\u3070\u6210\u529f\u3067\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"i-4\">Docker\u30b3\u30f3\u30c6\u30ca\u3092\u5b9f\u884c\u3057\u3066\u307f\u3088\u3046<\/h1>\n\n\n\n<p>\u300c<code>hello-world<\/code>\u300d\u30a4\u30e1\u30fc\u30b8\u304b\u3089\u30b3\u30f3\u30c6\u30ca\u3092\u5b9f\u884c\u3059\u308b\u306b\u306f<code>docker\u30b3\u30de\u30f3\u30c9 \u30b5\u30d6\u30b3\u30de\u30f3\u30c9 \u30a4\u30e1\u30fc\u30b8<\/code>\u3068\u3057\u307e\u3059\u3002\u4eca\u56de\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u30bf\u30fc\u30df\u30ca\u30eb\u7b49\u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u3092\u60f3\u5b9a\u3057\u307e\u3059\u3002\u5b9f\u884c\u3059\u308b\u306b\u306f\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092\u30bf\u30fc\u30df\u30ca\u30eb\u7b49\u306b\u5165\u529b\u3057\u305f\u5f8c\u306b<code>[Enter]<\/code>\u30ad\u30fc\u3092\u62bc\u3059\u3053\u3068\u3067\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>docker run hello-world<\/p>\n\n\n\n<p><a rel=\"noreferrer noopener nofollow\" href=\"https:\/\/hub.docker.com\/_\/hello-world\" target=\"_blank\">hello-world\u30a4\u30e1\u30fc\u30b8<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u5c11\u3005\u9577\u3044\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3070\u3001\u300cHello from Docker\uff01\u300d\u3068\uff11\u884c\u76ee\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308c\u3070<\/p>\n\n\n\n<p>\u6b63\u5e38\u306b<meta charset=\"utf-8\">\u300c<code>hello-world<\/code>\u300d\u30a4\u30e1\u30fc\u30b8\u304b\u3089\u30b3\u30f3\u30c6\u30ca\u3092\u5b9f\u884c\u51fa\u6765\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"i-5\">Docker\u3092\u5b66\u3076\u306b\u306f<\/h1>\n\n\n\n<p><meta charset=\"utf-8\">Docker\u3092\u5b66\u3076\u306b\u306f\u5b9f\u969b\u306b\u624b\u3092\u52d5\u304b\u3059\u3053\u3068\u304c\u8fd1\u9053\u3067\u3059\u3002<br>\u305d\u3053\u3067\u4e00\u756a\u6700\u521d\u306b<a href=\"http:\/\/docs.docker.jp\/\" rel=\"nofollow noopener\" target=\"_blank\">Docker\u516c\u5f0f\u306e\u65e5\u672c\u8a9e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb<\/a>\u3092\u5143\u306b\u8aad\u307f\u9032\u3081\u306a\u304c\u3089\u624b\u3092\u52d5\u304b\u3057\u306a\u304c\u3089\u5b66\u3076\u306e\u304c\u826f\u3044\u3067\u3057\u3087\u3046\u3002\u305d\u306e\u307b\u304b\u306b\u3082\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3057\u305f\u308a\u3001\u66f8\u7c4d\u306a\u3069\u3092\u53c2\u8003\u306bDocker\u3092\u5b66\u3093\u3067\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u3057\u304b\u3057\u72ec\u5b66\u3067Docker\u3092\u5b66\u3093\u3067\u3044\u308b\u3068\u3001\u5b9f\u52d9\u3067\u3069\u3053\u307e\u3067\u306e\u77e5\u8b58\u304c\u5fc5\u8981\u306a\u306e\u304b\u3001\u308f\u304b\u3089\u306a\u3044\u3053\u3068\u304c\u3042\u3063\u305f\u6642\u306b\u3059\u3050\u306b\u805e\u3051\u306a\u3044\u3068\u56f0\u308b\u3068\u3044\u3046\u65b9\u3082\u3044\u3089\u3063\u3057\u3083\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u305d\u3046\u3044\u3063\u305f\u65b9\u306f<a href=\"https:\/\/aiacademy.jp\/bootcamp\/\">AI Academy Bootcamp<\/a>\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u30c1\u30e3\u30c3\u30c8\u30b5\u30dd\u30fc\u30c8\u30d7\u30e9\u30f3\u3092\u3054\u53d7\u8b1b\u304f\u3060\u3055\u3044\u3002\uff16\u30f6\u6708\u9593\u30c1\u30e3\u30c3\u30c8\u3067\u3044\u3064\u3067\u3082\u7121\u5236\u9650\u3067\u8cea\u554f\u3057\u653e\u984c\u306e\u74b0\u5883\u3067\u5b66\u3079\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5b9f\u969b\u306b\u6a5f\u68b0\u5b66\u7fd2\u30a8\u30f3\u30b8\u30cb\u30a2\u3084\u30c7\u30fc\u30bf\u30b5\u30a4\u30a8\u30f3\u30c6\u30a3\u30b9\u30c8\u3068\u3057\u3066\u6d3b\u8e8d\u3057\u3066\u3044\u308b\u8b1b\u5e2b\u306b\u56de\u7b54\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/aiacademy.jp\/bootcamp\/\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"341\" src=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-1024x341.png\" alt=\"\" class=\"wp-image-691\" srcset=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-1024x341.png 1024w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-300x100.png 300w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-768x256.png 768w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-940x313.png 940w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u6b21 Docker\u3068\u306f \u30a4\u30e1\u30fc\u30b8\u3068\u30b3\u30f3\u30c6\u30ca Docker\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb Docker Hub\u306e\u767b\u9332 Docker\u30b3\u30f3\u30c6\u30ca\u3092\u5b9f\u884c\u3057\u3066\u307f\u3088\u3046 Docker\u3092\u5b66\u3076\u306b\u306f Docker\u3068\u306f Docker\uff08\u30c9\u30c3\u30ab\u30fc\uff09\u3068\u306f\u8efd\u91cf\u306a\u30b3\u30f3\u30c6 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":1111,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[144],"tags":[],"class_list":{"0":"post-1106","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-docker"},"_links":{"self":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts\/1106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1106"}],"version-history":[{"count":5,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts\/1106\/revisions"}],"predecessor-version":[{"id":3861,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts\/1106\/revisions\/3861"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/media\/1111"}],"wp:attachment":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}