{"id":8962,"date":"2019-12-30T23:17:44","date_gmt":"2019-12-30T14:17:44","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=8962"},"modified":"2023-05-27T18:44:06","modified_gmt":"2023-05-27T09:44:06","slug":"%e3%80%90docker%e3%80%91%e3%80%8c%e3%82%bf%e3%82%b0%e3%80%8d%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=8962","title":{"rendered":"\u3010Docker\u3011Docker\u30a4\u30e1\u30fc\u30b8\u306e\u57fa\u672c\u3001\u300c\u30bf\u30b0\u300d\u306b\u3064\u3044\u3066"},"content":{"rendered":"<h2>Docker\u30a4\u30e1\u30fc\u30b8\u3068\u306f\uff1f<\/h2>\n<p>\u30b3\u30f3\u30c6\u30ca\u306e\u5b9f\u884c\u306b\u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u7fa4\uff08\u30d7\u30ed\u30b0\u30e9\u30e0\u672c\u4f53\/\u30e9\u30a4\u30d6\u30e9\u30ea\/\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\/\uff2f\uff33\/\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u8a2d\u5b9a\u7b49\uff09\u3092\u683c\u7d0d\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u3053\u3068\u3067<span style=\"color: #ff0000;\"><strong>\u30b3\u30f3\u30c6\u30ca\u4f5c\u6210\u6642\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<\/strong><\/span>\u306b\u306a\u308a\u307e\u3059\u3002\u306a\u304a\u3001<span style=\"color: #ff0000;\"><strong>\u4e00\u3064\u306eDocker\u30a4\u30e1\u30fc\u30b8\u304b\u3089\u8907\u6570\u306eDocker\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/strong><\/span><\/p>\n<h2>\u7279\u5fb4<\/h2>\n<ul>\n<li>AUFS\u3068\u3044\u3046\u7279\u6b8a\u306a\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u304c\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/li>\n<li>\u30a4\u30e1\u30fc\u30b8\u4e0a\u306e\u30c7\u30fc\u30bf\u306f\u30ec\u30a4\u30e4\u30fc\u69cb\u9020\u306b\u306a\u3063\u3066\u3044\u3066\u8aad\u307f\u53d6\u308a\u5c02\u7528\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n<h2>\u30ec\u30a4\u30e4\u30fc\u69cb\u9020<\/h2>\n<p>Docker\u30a4\u30e1\u30fc\u30b8\u306b\u624b\u3092\u52a0\u3048\u308b\u305f\u3073\u306b\u30ec\u30a4\u30e4\u30fc\u3068\u3044\u3046\u968e\u5c64\u304c\u4f5c\u3089\u308c\u307e\u3059\u3002\uff08\u4f8b\u3048\u3070\u3001Docker\u30a4\u30e1\u30fc\u30b8\u306bNgnix\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5834\u5408\u306f\u4e00\u3064\u30ec\u30a4\u30e4\u30fc\u304c\u7a4d\u307f\u91cd\u306a\u308a\u307e\u3059\u3057\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u66f4\u65b0\u3057\u305f\u5834\u5408\u3068\u304b\u3067\u3082\u540c\u69d8\u3067\u3059\u3002\uff09<\/p>\n<h3>\u30b3\u30f3\u30c6\u30ca\u30ec\u30a4\u30e4\u30fc<\/h3>\n<p>Docker\u30a4\u30e1\u30fc\u30b8\u304b\u3089\u65b0\u3057\u304f\u30ec\u30a4\u30e4\u30fc\u3092\u4f5c\u6210\u3057\u305f\u5834\u5408\u306f\u65b0\u3057\u304f\u30ec\u30a4\u30e4\u30fc\u306e\u4e00\u756a\u4e0a\u306b\u300c\u30b3\u30f3\u30c6\u30ca\u30ec\u30a4\u30e4\u30fc\u300d\u3068\u3044\u3046\u968e\u5c64\u304c\u4f5c\u3089\u308c\u307e\u3059\u3002<span style=\"color: #ff0000;\"><strong>\u30b3\u30f3\u30c6\u30ca\u30ec\u30a4\u30e4\u30fc\u306b\u95a2\u3057\u3066\u306f\u8aad\u307f\u66f8\u304d\u304c\u53ef\u80fd<\/strong><\/span>\u306b\u306a\u308a\u307e\u3059\u3002\u305d\u308c\u3092\u5f8c\u3067Docker\u30a4\u30e1\u30fc\u30b8\u3068\u3057\u3066\u4fdd\u5b58\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h2>\u30a4\u30e1\u30fc\u30b8\u306e\u30b5\u30a4\u30ba\u306f\u5909\u308f\u3089\u306a\u3044\u3002<\/h2>\n<p>\u904e\u53bb\u306e\u30ec\u30a4\u30e4\u30fc\u3067\u4f5c\u6210\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306f\u5f8c\u306e\u30ec\u30a4\u30e4\u30fc\u3067\u524a\u9664\u3092\u3057\u305f\u3068\u3057\u3066\u3082\u305d\u306e\u307e\u307e\u6b8b\u308a\u7d9a\u3051\u307e\u3059\u3002\u306a\u306e\u3067<span style=\"color: #ff0000;\"><strong>Docker\u30a4\u30e1\u30fc\u30b8\u306e\u30b5\u30a4\u30ba\u306f\u5909\u308f\u3089\u306a\u3044<\/strong><\/span>\u3067\u3059\u3002Docker\u30a4\u30e1\u30fc\u30b8\u306f\u3067\u304d\u308b\u3060\u3051\u8efd\u91cf\u3067\u3042\u308b\u3053\u3068\u304c\u6c42\u3081\u3089\u308c\u308b\u305f\u3081\u7121\u99c4\u306a\u30d5\u30a1\u30a4\u30eb\u304c\u30a4\u30e1\u30fc\u30b8\u306e\u4e2d\u306b\u6b8b\u3089\u306a\u3044\u3088\u3046\u306b\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u5927\u4e8b\u3067\u3059\u3002<\/p>\n<h2>Docker\u30a4\u30e1\u30fc\u30b8\u306e\u7d99\u627f<\/h2>\n<p>Docker\u30a4\u30e1\u30fc\u30b8\u306f\u7d99\u627f\u3057\u3066\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\uff08\u4f8b\u3048\u3070\u3001\u300cCentOS\u30ec\u30a4\u30e4\u30fc\u300d\u306e\u4e0a\u306b\u300cRuby\u30ec\u30a4\u30e4\u30fc\u300d\u3001\u300cRails\u30ec\u30a4\u30e4\u30fc\u300d\u3092\u8f09\u305b\u308b\u3068\u3044\u3046\u3088\u3046\u306a\u611f\u3058\u3067\u3002\uff09<\/p>\n<h3>\u30e1\u30ea\u30c3\u30c8<\/h3>\n<h4>\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u7bc0\u7d04<\/h4>\n<p>\u7d99\u627f\u5143\u306e\u30ec\u30a4\u30e4\u30fc\u304c\u540c\u3058\u30b3\u30f3\u30c6\u30ca\u304c\u3042\u308c\u3070\u30b3\u30f3\u30c6\u30ca\u3067\u30ea\u30bd\u30fc\u30b9\u3092\u5171\u6709\u3067\u304d\u308b\u306e\u3067<span style=\"color: #ff0000;\"><strong>\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u7bc0\u7d04<\/strong><\/span>\u306b\u306a\u308a\u307e\u3059\u3002\uff08\u4f8b\u3048\u3070\u3001Web\u30b3\u30f3\u30c6\u30ca\u3068DB\u30b3\u30f3\u30c6\u30ca\u304c\u3042\u3063\u305f\u5834\u5408\u306bOS\u30ec\u30a4\u30e4\u30fc\u304c\u540c\u3058\u306e\u5834\u5408\u306fOS\u30ec\u30a4\u30e4\u30fc\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u5171\u6709\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\uff09<\/p>\n<h4>\u4e8c\u91cd\u306bDocker\u30a4\u30e1\u30fc\u30b8\u3092\u53d6\u5f97\u3059\u308b\u5fc5\u8981\u304c\u306a\u3044\u3002<\/h4>\n<p>\u4e8c\u91cd\u306b\u7d99\u627f\u5143\u306e\u30ec\u30a4\u30e4\u30fc\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u5fc5\u8981\u304c\u306a\u3044\u306e\u3067\u901a\u4fe1\u91cf\u306e\u7bc0\u7d04\u306b\u3082\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>Docker\u30a4\u30e1\u30fc\u30b8\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h2>\n<p>Docker\u30a4\u30e1\u30fc\u30b8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u969b\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">$ docker run hello-world\r\nUnable to find image 'hello-world:latest' locally\r\nlatest: Pulling from library\/hello-world\r\n1b930d010525: Pull complete \r\nDigest: sha256:4fe721ccc2e8dc7362278a29dc660d833570ec2682f4e4194f4ee23e415e1064\r\nStatus: Downloaded newer image for hello-world:latest<\/pre>\n<h3>Unable to find image 'hello-world:latest' locally<\/h3>\n<p>\u30ed\u30fc\u30ab\u30eb\uff08\u81ea\u5206\u306ePC\u4e0a\uff09\u306bDocker\u30a4\u30e1\u30fc\u30b8\u304c\u5b58\u5728\u3057\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>latest: Pulling from library\/hello-world<\/h3>\n<p>latest\u30bf\u30b0\u304b\u3089\u30d7\u30eb\u3057\u3066\u3044\u308b\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>1b930d010525: Pull complete<\/h3>\n<p><span style=\"color: #ff0000;\"><strong>Docker\u30a4\u30e1\u30fc\u30b8\u306e\u5404\u30ec\u30a4\u30e4\u30fc<\/strong><\/span>\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u4e00\u884c\u3057\u304b\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u304c\u8907\u6570\u884c\u8868\u793a\u3055\u308c\u3066\u3044\u305f\u5834\u5408\u306f\u8907\u6570\u30ec\u30a4\u30e4\u30fc\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u3044\u308b\u3068\u3044\u3046\u610f\u5473\u306b\u306a\u308a\u307e\u3059\u3002\u4e00\u90e8\u30ec\u30a4\u30e4\u30fc\u60c5\u5831\u3092\u30ed\u30fc\u30ab\u30eb\u306b\u6301\u3063\u3066\u3044\u305f\u5834\u5408\u306f\u8db3\u308a\u306a\u3044\u30ec\u30a4\u30e4\u30fc\u60c5\u5831\u304c\u3060\u3051\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>Digest: sha256:4fe721ccc2e8dc7362278a29dc660d833570ec2682f4e4194f4ee23e415e1064<\/h3>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30a4\u30e1\u30fc\u30b8\u306e\u30c7\u30fc\u30bf\u3092\u300csha256\u300d\u3067\u30cf\u30c3\u30b7\u30e5\u5316\u3057\u305f\u3082\u306e\u3067\u30a4\u30e1\u30fc\u30b8\u3054\u3068\u306b\u4e00\u610f\u306b\u306a\u308b\u3082\u306e\u3067\u3059\u3002Docker\u30a4\u30e1\u30fc\u30b8\u306e\u5185\u5bb9\u304c\u5909\u66f4\u3055\u308c\u305f\u5834\u5408\u306f\u3053\u3061\u3089\u306e\u5185\u5bb9\u3082\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n<h3>Status: Downloaded newer image for hello-world:latest<\/h3>\n<p>Docker\u30a4\u30e1\u30fc\u30b8\u306e\u30d7\u30eb\u306e\u7d50\u679c\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u8868\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u300cDownloaded newer image\u300d\u3067\u3042\u308c\u3070\u30d7\u30eb\u306b\u6210\u529f\u3057\u3066\u3044\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u30bf\u30b0\u306e\u751f\u6210<\/h2>\n<p>\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308c\u3070Docker\u30a4\u30e1\u30fc\u30b8\u304b\u3089\u30bf\u30b0\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h3>docker image tag \u5143\u30a4\u30e1\u30fc\u30b8\u540d:[\u30bf\u30b0] \u65b0\u30a4\u30e1\u30fc\u30b8\u540d:[\u30bf\u30b0]\u3001\u7701\u7565\u7cfb\u306f\u300cdocker tag\u300d<\/h3>\n<p>Docker\u30a4\u30e1\u30fc\u30b8\u306e\u7279\u5b9a\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u30bf\u30b0\u4ed8\u3092\u884c\u3044\u307e\u3059\u3002\u306a\u304a\u3001<span style=\"color: #ff0000;\"><strong>\u5143\u30a4\u30e1\u30fc\u30b8\u3068\u65b0\u30a4\u30e1\u30fc\u30b8\u306e\u30a4\u30e1\u30fc\u30b8ID\u306f\u5168\u304f\u540c\u3058\u306b\u306a\u308a\u307e\u3059\u3002<\/strong><\/span><\/p>\n<h2>latest\u30bf\u30b0\u306e\u6ce8\u610f\u70b9<\/h2>\n<p>docker pull\u30b3\u30de\u30f3\u30c9\u3067\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089Docker\u30a4\u30e1\u30fc\u30b8\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u4f7f\u7528\u3055\u308c\u308b\u30bf\u30b0\u304c<span style=\"color: #ff0000;\"><strong>\u300clatest\u30bf\u30b0\u300d<\/strong><\/span>\u306b\u306a\u308a\u307e\u3059\u3002latest\u30bf\u30b0\u306f\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u306eDocker\u30a4\u30e1\u30fc\u30b8\u3067\u3042\u308b\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u304c<span style=\"color: #ff0000;\"><strong>\u53e4\u3044\u30a4\u30e1\u30fc\u30b8\u3067\u3042\u308b\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u3002<\/strong><\/span><\/p>\n<p>docker pull\u3092\u3059\u308b\u5834\u5408\u306f\u660e\u793a\u7684\u306a\u30bf\u30b0\u3092\u6307\u5b9a\u3057\u3066Docker\u30a4\u30e1\u30fc\u30b8\u3092\u30d7\u30eb\u3057\u305f\u65b9\u304c\u5b89\u5168\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Docker\u30a4\u30e1\u30fc\u30b8\u3068\u306f\uff1f \u30b3\u30f3\u30c6\u30ca\u306e\u5b9f\u884c\u306b\u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u7fa4\uff08\u30d7\u30ed\u30b0\u30e9\u30e0\u672c\u4f53\/\u30e9\u30a4\u30d6\u30e9\u30ea\/\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\/\uff2f\uff33\/\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u8a2d\u5b9a\u7b49\uff09\u3092\u683c\u7d0d\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u3053\u3068\u3067\u30b3\u30f3\u30c6\u30ca\u4f5c\u6210\u6642\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u306a\u308a\u307e\u3059\u3002\u306a\u304a\u3001\u4e00\u3064\u306eDock [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[63],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/8962"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8962"}],"version-history":[{"count":3,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/8962\/revisions"}],"predecessor-version":[{"id":20176,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/8962\/revisions\/20176"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8962"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8962"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8962"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}