{"id":29422,"date":"2019-08-14T11:00:22","date_gmt":"2019-08-14T02:00:22","guid":{"rendered":"https:\/\/www.creationline.com\/?p=29422"},"modified":"2019-09-11T17:34:29","modified_gmt":"2019-09-11T08:34:29","slug":"docker%e3%81%a7node-js%e3%82%a2%e3%83%97%e3%83%aa%e3%82%92%e3%82%a4%e3%82%a4%e6%84%9f%e3%81%98%e3%81%ab%e4%bf%9d%e3%81%a44%e3%81%a4%e3%81%ae%e6%96%b9%e6%b3%95-docker","status":"publish","type":"post","link":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/29422","title":{"rendered":"Docker\u3067Node.js\u30a2\u30d7\u30ea\u3092\u30a4\u30a4\u611f\u3058\u306b\u4fdd\u30644\u3064\u306e\u65b9\u6cd5 #docker"},"content":{"rendered":"<p>\u672c\u8a18\u4e8b\u306f<a href=\"https:\/\/www.docker.com\/captains\/bret-fisher\">Docker\u30ad\u30e3\u30d7\u30c6\u30f3\u306eBret Fisher\u6c0f<\/a>\u306b\u3088\u308b\u30b2\u30b9\u30c8\u6295\u7a3f\u3067\u3059\u3002\u5f7c\u306fDevOps\u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u8005\u3092\u9577\u5e74\u52d9\u3081\u3001<a href=\"https:\/\/www.bretfisher.com\/node\">Docker Mastery for Node.js<\/a>\u3092\u542b\u3080\u4eba\u6c17\u306eDocker Mastery\u30b3\u30fc\u30b9\u3001\u6bce\u9031\u306e<a href=\"https:\/\/www.youtube.com\/channel\/UC0NErq0RhP51iXx64ZmyVfg\">YouTube Live<\/a>\u3001Docker\u3092\u63a1\u7528\u3057\u3066\u3044\u308b\u4f01\u696d\u3078\u306e\u30b3\u30f3\u30b5\u30eb\u30c6\u30a3\u30f3\u30b0\u306a\u3069\u3001\u30b3\u30f3\u30c6\u30ca\u30b9\u30ad\u30eb\u306b\u3064\u3044\u3066\u8b1b\u6f14\u3057\u3066\u3044\u307e\u3059\u3002Bret\u6c0f\u304cNode.js\u3068Docker\u306b\u95a2\u3059\u308b\u30c7\u30e2\u3084\u8cea\u7591\u5fdc\u7b54\u3092\u884c\u3046<a href=\"https:\/\/events.docker.com\/events\/details\/docker-docker-online-meetups-presents-nodejs-in-docker-tips-and-tricks-with-docker-captain-bret-fisher\/#\/\">8\u670828\u65e5\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u30df\u30fc\u30c8\u30a2\u30c3\u30d7<\/a>\u306b\u53c2\u52a0\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<hr \/>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2019\/08\/01.jpg\" alt=\"\" width=\"1110\" height=\"624\" class=\"aligncenter size-full wp-image-29423\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2019\/08\/01.jpg 1110w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2019\/08\/01-360x202.jpg 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2019\/08\/01-1024x576.jpg 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2019\/08\/01-460x260.jpg 460w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2019\/08\/01-768x432.jpg 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2019\/08\/01-512x288.jpg 512w\" sizes=\"auto, (max-width: 1110px) 100vw, 1110px\" \/><\/p>\n<p>\u8ab0\u3067\u3082\u304a\u6c17\u306b\u5165\u308a\u306e\u8a00\u8a9e\u3084\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u304c\u3042\u308b\u306f\u305a\u3067\u3059\u3001\u79c1\u306b\u3068\u3063\u3066\u306fNode.js\u304c\u4e00\u756a\u3067\u3059\u3002\u79c1\u306f\u521d\u671f\u304b\u3089\u30df\u30c3\u30b7\u30e7\u30f3\u30af\u30ea\u30c6\u30a3\u30ab\u30eb\u306a\u30a2\u30d7\u30ea\u3067Node.js\u3092Docker\u5316\u3057\u3066\u52d5\u304b\u3057\u3066\u3044\u307e\u3057\u305f\u3002 <strong>\u79c1\u306e\u4f7f\u547d\u306f\u3001\u3053\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3084npm\u3001Yarn\u3001Docker\u3067\u306enodemon\u306e\u3088\u3046\u306a\u6a5f\u80fd\u3092\u6700\u5927\u9650\u306b\u6d3b\u7528\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3001\u7686\u3055\u3093\u3092\u6559\u80b2\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/strong><\/p>\n<p>Docker\u3067Node.js\u3092\u4f7f\u3046\u65b9\u6cd5\u306b\u3064\u3044\u3066\u5927\u91cf\u306e\u60c5\u5831\u304c\u3042\u308a\u307e\u3059\u304c\u3001 <strong>\u305d\u306e\u307b\u3068\u3093\u3069\u306f\u6642\u4ee3\u9045\u308c\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/strong> \u3053\u3053\u3067\u306fNode.js 10\u4ee5\u4e0a\u3068Docker 18.09\u4ee5\u4e0a\u5411\u3051\u306e\u8a2d\u5b9a\u3092\u6700\u9069\u5316\u3059\u308b\u65b9\u6cd5\u3092\u3054\u6848\u5185\u3057\u307e\u3059\u3002DockerCon 2019\u306e\u79c1\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u3067\u3053\u308c\u3089\u306e\u30c8\u30d4\u30c3\u30af\u306a\u3069\u3092\u30ab\u30d0\u30fc\u3057\u3066\u3044\u308b\u306e\u3067\u3001<a href=\"https:\/\/youtu.be\/Zgx0o8QjJk4\">YouTube\u3082\u898b\u3066\u307f\u3066\u304f\u3060\u3055\u3044<\/a>\u3002<\/p>\n<p>\u3067\u306f\u3001Node.js\u30b3\u30f3\u30c6\u30ca\u3092\u30a4\u30a4\u611f\u3058\u306b\u3059\u308b\u305f\u3081\u306e4\u3064\u306e\u624b\u9806\u3092\u59cb\u3081\u307e\u3057\u3087\u3046\uff01 <strong>\u5fc5\u8981\u306b\u5fdc\u3058\u3066\"Too Long; Didn't Read\"(TL;DR, \u8981\u7d04)\u3092\u542b\u3081\u3066\u3044\u307e\u3059\u3002<\/strong><\/p>\n<h2>\u73fe\u5728\u306e\u30d9\u30fc\u30b9\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u306e\u56fa\u5b9a<\/h2>\n<p><strong>TL;DR:<\/strong> \u3082\u3057Node.js\u30a2\u30d7\u30ea\u3092\u30b3\u30f3\u30c6\u30ca\u306b\u79fb\u884c\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b\u306a\u3089\u3001\u73fe\u5728\u672c\u756a\u74b0\u5883\u3067\u4f7f\u3063\u3066\u3044\u308b\u30db\u30b9\u30c8OS\u3068\u540c\u3058\u30d9\u30fc\u30b9\u30a4\u30e1\u30fc\u30b8\u3092\u4f7f\u3044\u307e\u3057\u3087\u3046\u3002\u79c1\u306e\u304a\u6c17\u306b\u5165\u308a\u306e\u30d9\u30fc\u30b9\u30a4\u30e1\u30fc\u30b8\u306f\u3001node:alpine\u3088\u308a\u3082\u516c\u5f0f\u306enode:slim\u3067\u3059\u3002node:alpine\u306f\u3088\u3044\u3082\u306e\u3067\u3059\u304c\u3001\u901a\u5e38\u5229\u7528\u3059\u308b\u306b\u306f\u591a\u304f\u306e\u4f5c\u696d\u304c\u5fc5\u8981\u3067\u3001\u5236\u9650\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>Node.js\u30a2\u30d7\u30ea\u3092Docker\u5316\u3057\u3088\u3046\u3068\u3059\u308b\u4eba\u304c\u6700\u521d\u306b\u554f\u984c\u3068\u3059\u308b\u70b9\u306e1\u3064\u306f\u3001 <strong>\"Node.js\u306eDockerfile\u306f\u3001\u3069\u306e\u30d9\u30fc\u30b9\u30a4\u30e1\u30fc\u30b8\u3092FROM\u3068\u3057\u305f\u3089\u3088\u3044\u3067\u3059\u304b?\"<\/strong> \u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2019\/08\/02-2.png\" alt=\"\" width=\"1110\" height=\"120\" class=\"aligncenter size-full wp-image-29424\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2019\/08\/02-2.png 1110w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2019\/08\/02-2-360x39.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2019\/08\/02-2-768x83.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2019\/08\/02-2-1024x111.png 1024w\" sizes=\"auto, (max-width: 1110px) 100vw, 1110px\" \/><\/p>\n<p>\u3053\u308c\u306b\u306f\u8b70\u8ad6\u306e\u4f59\u5730\u304c\u3042\u308b\u8907\u6570\u306e\u8981\u7d20\u3092\u542b\u3093\u3067\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u3001IoT\u3084\u7d44\u307f\u8fbc\u307f\u30c7\u30d0\u30a4\u30b9\u306a\u3069\u5e38\u306b\u30b5\u30a4\u30ba\u3092\u6c17\u306b\u3059\u308b\u306e\u3067\u306a\u3044\u9650\u308a\u3001\u300c\u30a4\u30e1\u30fc\u30b8\u30b5\u30a4\u30ba\u300d\u3092\u6700\u9ad8\u512a\u5148\u5ea6\u306b\u7f6e\u3044\u3066\u306f\u3044\u3051\u307e\u305b\u3093\u3002 <strong>\u8fd1\u5e74\u3001slim\u30a4\u30e1\u30fc\u30b8\u306f150MB\u307e\u3067\u30b5\u30a4\u30ba\u304c\u5c0f\u3055\u304f\u306a\u3063\u3066\u304a\u308a\u3001\u304b\u3064\u3055\u307e\u3056\u307e\u306a\u72b6\u6cc1\u3067\u6700\u3082\u3088\u304f\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/strong> Alpine\u306f\u3068\u3066\u3082\u5c0f\u3055\u306a\u30b3\u30f3\u30c6\u30ca\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u3001\u6700\u5c0f\u306enode\u30a4\u30e1\u30fc\u30b8\u306f\u305f\u3063\u305f75MB\u3067\u3059\u3002\u3057\u304b\u3057\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u3092apt\u304b\u3089apk\u306b\u53d6\u308a\u66ff\u3048\u305f\u308a\u3001 <a href=\"https:\/\/github.com\/remy\/nodemon\/issues\/1447\">\u7279\u5225\u306a\u72b6\u6cc1<\/a> \u306b\u5bfe\u5fdc\u3057\u305f\u308a\u3001 <a href=\"https:\/\/kubedex.com\/follow-up-container-scanning-comparison\/\">\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b9\u30ad\u30e3\u30f3\u306e\u5236\u9650<\/a> \u3092\u56de\u907f\u3057\u305f\u308a\u3059\u308b\u52aa\u529b\u3092\u3059\u308b\u304f\u3089\u3044\u306a\u3089\u3001\u307b\u3068\u3093\u3069\u306e\u5834\u5408node:alpine\u3092\u304a\u52e7\u3081\u3057\u307e\u305b\u3093\u3002<\/p>\n<p>\u30b3\u30f3\u30c6\u30ca\u6280\u8853\u3092\u63a1\u7528\u3059\u308b\u3068\u304d\u306f\u3001\u4ed6\u306e\u4e8b\u3068\u540c\u3058\u3088\u3046\u306b\u3001\u5909\u3048\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044\u3053\u3068\u3092\u6e1b\u3089\u3057\u305f\u3044\u3067\u3057\u3087\u3046\u3002\u305f\u3044\u3078\u3093\u591a\u304f\u306e\u65b0\u3057\u3044\u6280\u8853\u3084\u624b\u9806\u304c\u30b3\u30f3\u30c6\u30ca\u3068\u4e00\u7dd2\u306b\u3084\u3063\u3066\u304d\u307e\u3059\u3002 <strong>\u958b\u767a\u30c1\u30fc\u30e0\u3068\u904b\u7528\u30c1\u30fc\u30e0\u304c\u6700\u3082\u5229\u7528\u3059\u308b\u30d9\u30fc\u30b9\u30a4\u30e1\u30fc\u30b8\u3092\u9078\u629e\u3059\u308b\u3053\u3068\u306f\u3001\u591a\u304f\u306e\u4e88\u671f\u305b\u306c\u6069\u6075\u304c\u3042\u308a\u307e\u3059\u3002<\/strong> \u3088\u3063\u3066\u3001\u305d\u308c\u304c\u7406\u306b\u9069\u3063\u3066\u3044\u308b\u3068\u304d\u306f\u56fa\u5b9a\u3057\u307e\u3057\u3087\u3046\u3002\u3053\u306e\u8003\u3048\u65b9\u306fCentOS\u3084Ubuntu\u306a\u3069\u306e\u30ab\u30b9\u30bf\u30e0\u30a4\u30e1\u30fc\u30b8\u3092\u4f5c\u308b\u3068\u304d\u3067\u3055\u3048\u3082\u901a\u7528\u3057\u307e\u3059\u3002<\/p>\n<h2>Node\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u53d6\u308a\u6271\u3044<\/h2>\n<p><strong>TL;DR:<\/strong> \u6b63\u3057\u3044\u30ed\u30fc\u30ab\u30eb\u958b\u767a\u306e\u305f\u3081\u306e\u3044\u304f\u3064\u304b\u306e\u30eb\u30fc\u30eb\u306b\u5f93\u3046\u9650\u308a\u3001\u30b3\u30f3\u30c6\u30ca\u5185\u3067node&#95;modules\u3092\u518d\u914d\u7f6e\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u30022\u3064\u76ee\u306e\u65b9\u6cd5\u306f\u3001Dockerfile\u5185\u3067node&#95;modules\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4e0a\u306e\u307b\u3046\u306b\u914d\u7f6e\u3057\u3001\u30b3\u30f3\u30c6\u30ca\u3092\u6b63\u3057\u304f\u8a2d\u5b9a\u3057\u3001\u6700\u3082\u67d4\u8edf\u306a\u65b9\u6cd5\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u305f\u3060\u3057\u3001\u3053\u308c\u306f\u3059\u3079\u3066\u306enpm\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u52d5\u4f5c\u3059\u308b\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u79c1\u9054\u306f\u3044\u307e\u3084\u3001\u30a2\u30d7\u30ea\u5185\u3067\u5b9f\u884c\u3059\u308b\u30b3\u30fc\u30c9\u306e\u3059\u3079\u3066\u3092\u66f8\u304f\u308f\u3051\u3067\u306f\u306a\u3044\u3001\u3068\u3044\u3046\u4e16\u754c\u306b\u6163\u308c\u3066\u3044\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u30a2\u30d7\u30ea\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u4f9d\u5b58\u6027\u3092\u53d6\u308a\u6271\u3046\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002 <strong>\u3088\u304f\u3042\u308b\u7591\u554f\u306e1\u3064\u306f\u3001\u30a2\u30d7\u30ea\u306e\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b\u30b3\u30fc\u30c9\u306e\u4f9d\u5b58\u6027\u3092\u3001\u30b3\u30f3\u30c6\u30ca\u5185\u3067\u3069\u306e\u3088\u3046\u306b\u6271\u3046\u304b\u3001\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/strong> \u958b\u767a\u7528\u306e\u30ed\u30fc\u30ab\u30eb\u306e\u30d0\u30a4\u30f3\u30c9\u30de\u30a6\u30f3\u30c8\u306f\u3001\u30a2\u30d7\u30ea\u306b\u3055\u307e\u3056\u307e\u306a\u5f71\u97ff\u3092\u4e0e\u3048\u307e\u3059\u3002\u305d\u308c\u3089\u306e\u4f9d\u5b58\u95a2\u4fc2\u306f\u30db\u30b9\u30c8OS\u4e0a\u3067\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u610f\u56f3\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u3067\u3001\u30b3\u30f3\u30c6\u30ca\u5185\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>Node.js\u306b\u304a\u3051\u308b\u3053\u306e\u554f\u984c\u306e\u672c\u8cea\u306f\u3001node&#95;modules\u306f\u30db\u30b9\u30c8OS\u7528\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u305f\u30d0\u30a4\u30ca\u30ea\u3092\u542b\u307f\u3046\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u3082\u3057\u30db\u30b9\u30c8OS\u304c\u30b3\u30f3\u30c6\u30caOS\u3068\u7570\u306a\u3063\u3066\u3044\u305f\u3089\u3001\u30a2\u30d7\u30ea\u3092\u5b9f\u884c\u3057\u3088\u3046\u3068\u3057\u3066\u958b\u767a\u7528\u30db\u30b9\u30c8\u304b\u3089node&#95;modules\u3092\u30d0\u30a4\u30f3\u30c9\u30de\u30a6\u30f3\u30c8\u3057\u305f\u3089\u30a8\u30e9\u30fc\u306b\u306a\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002 <strong>\u3042\u306a\u305f\u304c\u7d14\u7c8b\u306aLinux\u958b\u767a\u8005\u3067\u3001Linux x64\u7528\u306bLinux x64\u3067\u958b\u767a\u3057\u3066\u3044\u308b\u306a\u3089\u3001\u3053\u306e\u30d0\u30a4\u30f3\u30c9\u30de\u30a6\u30f3\u30c8\u554f\u984c\u304c\u5e38\u306b\u5f71\u97ff\u3059\u308b\u3068\u306f\u9650\u3089\u306a\u3044\u3053\u3068\u306b\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/strong><\/p>\n<p><strong>Node.js\u3067\u306e2\u3064\u306e\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u305d\u308c\u305e\u308c\u5229\u70b9\u3068\u5236\u9650\u4e8b\u9805\u304c\u3042\u308a\u307e\u3059:<\/strong><\/p>\n<h3>\u89e3\u6c7a\u7b56A: \u30b7\u30f3\u30d7\u30eb\u306b\u3057\u3066\u304a\u3053\u3046<\/h3>\n<p>node&#95;modules\u3092\u52d5\u304b\u3055\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002\u30b3\u30f3\u30c6\u30ca\u5185\u306e\u30a2\u30d7\u30ea\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b\u7f6e\u3044\u305f\u307e\u307e\u306b\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002\u3053\u308c\u306f\u958b\u767a\u4e2d\u306b\u30b3\u30f3\u30c6\u30ca\u5185\u3067\u4f7f\u3046node&#95;modules\u3092\u3001\u30db\u30b9\u30c8\u4e0a\u306b\u4f5c\u308b\u3053\u3068\u3092\u7981\u6b62\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\u3053\u308c\u306f\u7d14\u7c8b\u306bDocker\u958b\u767a\u3092\u884c\u3046\u3068\u304d\u306e\u79c1\u306e\u597d\u307f\u306e\u65b9\u6cd5\u3067\u3059\u3002<\/strong> \u30ed\u30fc\u30ab\u30eb\u958b\u767a\u306b\u304a\u3051\u308b\u3044\u304f\u3064\u304b\u306e\u30eb\u30fc\u30eb\u306b\u5f93\u3046\u3060\u3051\u3067\u3001\u3068\u3066\u3082\u3046\u307e\u304f\u3044\u304d\u307e\u3059:<\/p>\n<ol>\n<li>\u30b3\u30f3\u30c6\u30ca\u3092\u901a\u3057\u3066\u306e\u307f\u958b\u767a\u3057\u307e\u3057\u3087\u3046\u3002\u305d\u308c\u306f\u306a\u305c\u306a\u306e\u3067\u3057\u3087\u3046\u3002\u57fa\u672c\u7684\u306b\u3001\u30db\u30b9\u30c8\u4e0a\u306enode&#95;modules\u3068\u3001\u30b3\u30f3\u30c6\u30ca\u5185\u306enode&#95;modules\u3092\u307e\u305c\u3053\u305c\u306b\u3057\u305f\u304f\u306a\u3044\u3067\u3057\u3087\u3046\u3002macOS\u3068Windows\u3067\u306f\u3001Docker Desktop\u304cOS\u306e\u57a3\u6839\u3092\u8d8a\u3048\u3066\u30b3\u30fc\u30c9\u3092\u30d0\u30a4\u30f3\u30c9\u30de\u30a6\u30f3\u30c8\u3057\u307e\u3059\u3002\u3053\u308c\u304c\u30db\u30b9\u30c8OS\u7528\u306bnpm\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30b3\u30f3\u30c6\u30caOS\u5185\u3067\u306f\u5b9f\u884c\u3067\u304d\u306a\u3044\u30d0\u30a4\u30ca\u30ea\u306e\u554f\u984c\u3092\u5f15\u304d\u8d77\u3053\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<br \/>\n2.\u3059\u3079\u3066\u306enpm\u30b3\u30de\u30f3\u30c9\u3092docker-compose\u7d4c\u7531\u3067\u5b9f\u884c\u3057\u307e\u3057\u3087\u3046\u3002\u3053\u308c\u306f\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u7528\u306e\u6700\u521d\u306enpm install\u306fdocker-compose run \uff1c\u30b5\u30fc\u30d3\u30b9\u540d\uff1e npm install\u3067\u3042\u308b\u3079\u304d\u3060\u3068\u3044\u3046\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<h3>\u89e3\u6c7a\u7b56B: \u30b3\u30f3\u30c6\u30ca\u5074\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u52d5\u304b\u3057\u3066\u3001\u30db\u30b9\u30c8\u5074\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u96a0\u3059<\/h3>\n<p>Dockerfile\u5185\u3067\u306enode&#95;modules\u306e\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u3092\u518d\u914d\u7f6e\u3059\u308b\u3053\u3068\u3067\u3001\u30b3\u30f3\u30c6\u30ca\u306e\u5185\u5916\u3067Node.js\u306e\u958b\u767a\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002\u30db\u30b9\u30c8\u30cd\u30a4\u30c6\u30a3\u30d6\u958b\u767a\u3068Docker\u30d9\u30fc\u30b9\u306e\u958b\u767a\u306e\u4e21\u8005\u3092\u5207\u308a\u66ff\u3048\u3066\u3082\u4f9d\u5b58\u95a2\u4fc2\u306f\u58ca\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>Node.js\u306f\u8907\u6570\u306eOS\u3084\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3067\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u8a2d\u8a08\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u5e38\u306b\u30b3\u30f3\u30c6\u30ca\u5185\u3067\u958b\u767a\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002 <strong>\u3082\u3057Node.js\u30a2\u30d7\u30ea\u3092\u76f4\u63a5\u30db\u30b9\u30c8\u4e0a\u3067\u958b\u767a\u30fb\u52d5\u4f5c\u3059\u308b\u3068\u304d\u304c\u3042\u3063\u305f\u308a\u3001\u305d\u308c\u3092\u30ed\u30fc\u30ab\u30eb\u30b3\u30f3\u30c6\u30ca\u3067\u8d77\u52d5\u3059\u308b\u3068\u304d\u304c\u3042\u3063\u305f\u308a\u3059\u308b\u67d4\u8edf\u6027\u304c\u5fc5\u8981\u306a\u3089\u3001\u89e3\u6c7a\u7b56B\u3092\u53d6\u308b\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/strong><br \/>\n\u3053\u306e\u5834\u5408\u3001\u30db\u30b9\u30c8\u4e0a\u306enode&#95;modules\u306f\u30db\u30b9\u30c8\u306eOS\u7528\u306b\u30d3\u30eb\u30c9\u3057\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u3001\u30b3\u30f3\u30c6\u30ca\u5185\u306eLinux\u7528\u306b\u5225\u306enode&#95;modules\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2019\/08\/03.png\" alt=\"\" width=\"1110\" height=\"271\" class=\"aligncenter size-full wp-image-29425\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2019\/08\/03.png 1110w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2019\/08\/03-360x88.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2019\/08\/03-768x188.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2019\/08\/03-1024x250.png 1024w\" sizes=\"auto, (max-width: 1110px) 100vw, 1110px\" \/><\/p>\n<p>\u3053\u306e\u89e3\u6c7a\u7b56\u306e\u30eb\u30fc\u30eb\u306f\u6b21\u306e\u901a\u308a\u3067\u3059:<\/p>\n<ol>\n<li>node&#95;modules\u3092\u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u5185\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u307e\u3057\u3087\u3046\u3002Node.js\u306f\u5e38\u306b\u3001node&#95;modules\u3092\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u3057\u3066\u63a2\u3057\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u3082\u3057\u3082\u898b\u3064\u304b\u3089\u306a\u3051\u308c\u3070\u3001\u898b\u3064\u304b\u308b\u307e\u3067\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30d1\u30b9\u3092\u63a2\u3057\u3066\u3044\u304d\u307e\u3059\u3002<a href=\"https:\/\/github.com\/BretFisher\/node-docker-good-defaults\/blob\/69c923bc646bc96003e9ada55d1ec5ca943a1b19\/Dockerfile#L19-L30\">Dockerfile\u5185\u3067\u3053\u308c\u3092\u884c\u3046\u4f8b\u306f\u3053\u3061\u3089\u3067\u3059<\/a>\u3002<\/li>\n<li>\u30db\u30b9\u30c8\u306enode&#95;modules\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u30b3\u30f3\u30c6\u30ca\u5185\u306b\u898b\u305b\u308b\u3053\u3068\u3092\u9632\u3050\u306b\u306f\u3001\"\u7a7a\u306e\u30d0\u30a4\u30f3\u30c9\u30de\u30a6\u30f3\u30c8\"\u3068\u547c\u3093\u3067\u3044\u308b\u56de\u907f\u7b56\u3092\u4f7f\u3044\u307e\u3057\u3087\u3046\u3002\u3053\u308c\u306b\u3088\u3063\u3066\u30db\u30b9\u30c8\u306enode&#95;modules\u3092\u30b3\u30f3\u30c6\u30ca\u5185\u304b\u3089\u4f7f\u3048\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3059\u3002Compose YAML\u306f\u3001<a href=\"https:\/\/github.com\/BretFisher\/node-docker-good-defaults\/blob\/69c923bc646bc96003e9ada55d1ec5ca943a1b19\/docker-compose.yml#L30-L34\">\u3053\u306e\u3088\u3046\u306b\u306a\u308b\u3067\u3057\u3087\u3046<\/a>\u3002<\/li>\n<li>\u3053\u308c\u306f\u307b\u3068\u3093\u3069\u306eNode.js\u30b3\u30fc\u30c9\u3067\u52d5\u4f5c\u3057\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u3042\u308b\u5927\u304d\u306a\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3084\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f\u3001node&#95;modules\u304c\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u3042\u308b\u3053\u3068\u3092\u4eee\u5b9a\u3057\u305f\u30cf\u30fc\u30c9\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u884c\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u306e\u3067\u3001\u3053\u306e\u89e3\u6c7a\u7b56\u3092\u4f7f\u7528\u3067\u304d\u306a\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<\/ol>\n<p>\u3053\u308c\u3089\u306e\u89e3\u6c7a\u7b56\u306f\u3069\u3061\u3089\u3082\u3001\u5e38\u306b<a href=\"https:\/\/github.com\/BretFisher\/node-docker-good-defaults\/blob\/69c923bc646bc96003e9ada55d1ec5ca943a1b19\/.dockerignore\">node&#95;modules\u3092.dockerignore\u30d5\u30a1\u30a4\u30eb<\/a>\u306b\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3092\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046(.gitignore\u3068\u540c\u3058\u66f8\u5f0f\u3067\u3059)\u3002\u305d\u3046\u3059\u308b\u3053\u3068\u3067\u3001\u9593\u9055\u3063\u3066\u30db\u30b9\u30c8\u5074\u306enode&#95;modules\u3067\u30a4\u30e1\u30fc\u30b8\u3092\u69cb\u7bc9\u3057\u3066\u3057\u307e\u308f\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u5e38\u306b\u30a4\u30e1\u30fc\u30b8\u69cb\u7bc9 <strong>\u5185\u3067<\/strong> npm install\u3092\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>node\u30e6\u30fc\u30b6\u3092\u4f7f\u3044\u3001\u6700\u5c0f\u6a29\u9650\u3067\u5b9f\u884c<\/h2>\n<p>\u3059\u3079\u3066\u306e\u516c\u5f0fNode.js\u30a4\u30e1\u30fc\u30b8\u306f\u3001\u4e0a\u6d41\u30a4\u30e1\u30fc\u30b8\u3067node\u3068\u3044\u3046Linux\u30e6\u30fc\u30b6\u3092\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u3002 <strong>\u3053\u306e\u30e6\u30fc\u30b6\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u4f7f\u308f\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u3064\u307e\u308a\u3001Node.js\u30a2\u30d7\u30ea\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u30b3\u30f3\u30c6\u30ca\u5185\u3067root\u3068\u3057\u3066\u52d5\u4f5c\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002<\/strong> \u6a29\u9650\u306f\u30b3\u30f3\u30c6\u30ca\u5185\u306b\u9694\u96e2\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u308c\u306f\u60aa\u3044\u3053\u3068\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u3001Node.js\u3092root\u3067\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u306a\u3044\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3059\u3079\u3066\u3067\u6709\u52b9\u306b\u3057\u3066\u304a\u304f\u3079\u304d\u3067\u3059\u3002Dockerfile\u306b\u6b21\u306e1\u884c\u3092\u8ffd\u52a0\u3059\u308b\u3060\u3051\u3067\u3059: USER node<\/p>\n<p><strong>\u3053\u308c\u3092\u4f7f\u3046\u305f\u3081\u306e\u30eb\u30fc\u30eb\u306f\u6b21\u306e\u901a\u308a\u3067\u3059:<\/strong><\/p>\n<ol>\n<li>Dockerfile\u5185\u3067\u306e\u4f4d\u7f6e\u304c\u91cd\u8981\u3067\u3059\u3002apt\/yum\/apk\u30b3\u30de\u30f3\u30c9\u306e\u5f8c\u3001\u304b\u3064 <em>\u901a\u5e38\u306f<\/em> npm install\u30b3\u30de\u30f3\u30c9\u306e\u524d\u306bUSER\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n<li>\u3053\u308c\u306f\u3059\u3079\u3066\u306e\u30b3\u30de\u30f3\u30c9\u306b\u52b9\u679c\u304c\u3042\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u4f8b\u3048\u3070COPY\u306e\u3088\u3046\u306a\u3001<a href=\"https:\/\/docs.docker.com\/engine\/reference\/builder\/#copy\">\u30b3\u30d4\u30fc\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u6240\u6709\u8005\u3092\u5236\u5fa1\u3059\u308b\u66f8\u5f0f\u3092\u6301\u3063\u3066\u3044\u308b\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002<\/a><\/li>\n<li>\u5fc5\u8981\u306a\u3089\u3070USER root\u3068\u3059\u308b\u3053\u3068\u3067\u901a\u5e38\u306f\u5143\u306b\u623b\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u304c\u5fc5\u8981\u3068\u306a\u308b\u3001\u3088\u308a\u8907\u96d1\u306aDockerfile\u3067\u306f\u3001\u4f8b\u3048\u3070<a href=\"https:\/\/github.com\/BretFisher\/dockercon19\/blob\/master\/5.Dockerfile\">\u3053\u306e\u30de\u30eb\u30c1\u30b9\u30c6\u30fc\u30b8\u30d3\u30eb\u30c9\u306e\u4f8b<\/a>\u306e\u3088\u3046\u306b\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u30b9\u30c6\u30fc\u30b8\u4e2d\u306b\u30c6\u30b9\u30c8\u3068\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b9\u30ad\u30e3\u30f3\u306e\u5b9f\u884c\u3092\u542b\u3093\u3067\u3044\u307e\u3059\u3002<\/li>\n<li>\u30b3\u30f3\u30c6\u30ca\u5185\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u975eroot\u30e6\u30fc\u30b6\u3067\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u958b\u767a\u4e2d\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306f\u8907\u96d1\u306b\u306a\u308a\u304c\u3061\u3067\u3059\u3002npm install\u306e\u3088\u3046\u306a\u3082\u306e\u3092\u5b9f\u884c\u3059\u308b\u3068\u304d\u306b\u5bfe\u5fdc\u3057\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044\u3053\u3068\u306f\u3001\u4e00\u6642\u7684\u306broot\u3067\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u3044\u3068Docker\u306b\u4f1d\u3048\u308b\u3053\u3068\u3067\u3059: docker-compose run -u root npm install<\/li>\n<\/ol>\n<h2>\u672c\u756a\u74b0\u5883\u3067\u30d7\u30ed\u30bb\u30b9\u30de\u30cd\u30fc\u30b8\u30e3\u3092\u4f7f\u308f\u306a\u3044<\/h2>\n<p><strong>TL;DR:<\/strong> \u30ed\u30fc\u30ab\u30eb\u958b\u767a\u3092\u9664\u304d\u3001node\u30d0\u30a4\u30ca\u30ea\u8d77\u52d5\u30b3\u30de\u30f3\u30c9\u3092\u30e9\u30c3\u30d4\u30f3\u30b0\u3057\u3066\u306f\u3044\u3051\u307e\u305b\u3093\u3002npm\u3084nodemon\u306a\u3069\u3092\u4f7f\u3063\u3066\u306f\u3044\u3051\u307e\u305b\u3093\u3002Dockerfile\u306eCMD\u306f [\"node\", \"file-to-start.js\"] \u306e\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002\u305d\u3046\u3059\u308b\u3068\u30b3\u30f3\u30c6\u30ca\u306e\u7ba1\u7406\u30fb\u7f6e\u304d\u63db\u3048\u304c\u7c21\u5358\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>nodemon\u3084\u305d\u306e\u4ed6\u306e\"\u30d5\u30a1\u30a4\u30eb\u76e3\u8996\u30c4\u30fc\u30eb\"\u306f\u958b\u767a\u4e2d\u306b\u306f\u5fc5\u8981\u3067\u3059\u304c\u3001Node.js\u30a2\u30d7\u30ea\u306bDocker\u3092\u63a1\u7528\u3059\u308b\u6700\u3082\u5927\u304d\u306a\u5229\u70b9\u306e1\u3064\u306f\u3001pm2\u3001nodemon\u3001forever\u3001systemd\u306a\u3069\u30b5\u30fc\u30d0\u7528\u306b\u4f7f\u3063\u3066\u3044\u305f\u30c4\u30fc\u30eb\u306e\u4f5c\u696d\u3092Docker\u304c\u80a9\u4ee3\u308f\u308a\u3057\u3066\u304f\u308c\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>Docker\u3001Swarm\u3001Kubernetes\u306f\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3092\u5b9f\u884c\u3057\u305f\u308a\u3001\u3082\u3057\u30b3\u30f3\u30c6\u30ca\u306b\u969c\u5bb3\u304c\u8d77\u304d\u305f\u3089\u518d\u8d77\u52d5\u30fb\u518d\u4f5c\u6210\u3092\u884c\u3063\u305f\u308a\u3059\u308b\u5f79\u76ee\u3092\u62c5\u3063\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001\u30aa\u30fc\u30b1\u30b9\u30c8\u30ec\u30fc\u30bf\u306f\u30a2\u30d7\u30ea\u306e\u30ec\u30d7\u30ea\u30ab\u6570\u3092\u30b9\u30b1\u30fc\u30eb\u3059\u308bpm2\u3084forever\u304c\u884c\u3063\u3066\u3044\u305f\u3088\u3046\u306a\u5f79\u76ee\u3082\u62c5\u3063\u3066\u3044\u307e\u3059\u3002 <strong>\u306a\u304a\u3001Node.js\u306f\u307b\u3068\u3093\u3069\u306e\u5834\u5408\u306f\u30b7\u30f3\u30b0\u30eb\u30b9\u30ec\u30c3\u30c9\u3067\u3042\u308b\u3053\u3068\u3092\u5fd8\u308c\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002\u5358\u4e00\u30b5\u30fc\u30d0\u4e0a\u3067\u3042\u3063\u3066\u3082\u8907\u6570CPU\u306e\u5229\u76ca\u3092\u5f97\u308b\u305f\u3081\u306b\u3001\u304a\u305d\u3089\u304f\u8907\u6570\u306e\u30b3\u30f3\u30c6\u30ca\u30ec\u30d7\u30ea\u30ab\u3092\u8d77\u52d5\u3057\u305f\u304f\u306a\u308b\u3067\u3057\u3087\u3046\u3002<\/strong><\/p>\n<p><a href=\"https:\/\/github.com\/BretFisher\/node-docker-good-defaults\">\u79c1\u306e\u4f8b\u306e\u30ec\u30dd\u30b8\u30c8\u30ea<\/a>\u3067\u306f\u3001Dockerfile\u5185\u3067\u76f4\u63a5node\u30d0\u30a4\u30ca\u30ea\u3092\u4f7f\u3046\u65b9\u6cd5\u3092\u3054\u89a7\u3044\u305f\u3060\u3051\u307e\u3059\u3002\u305d\u3057\u3066\u30ed\u30fc\u30ab\u30eb\u958b\u767a\u3067\u306f\u3001docker build --target \uff1c\u30b9\u30c6\u30fc\u30b8\u540d\uff1e\u3067\u7570\u306a\u308b\u30a4\u30e1\u30fc\u30b8\u30b9\u30c6\u30fc\u30b8\u3092\u69cb\u7bc9\u3059\u308b\u304b\u3001compose YAML\u3067CMD\u3092\u4e0a\u66f8\u304d\u3059\u308b\u304b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>Dockerfile\u5185\u3067node\u30d0\u30a4\u30ca\u30ea\u3092\u76f4\u63a5\u8d77\u52d5<\/h2>\n<p><strong>TL;DR<\/strong> Dockerfile\u5185\u3067npm\u3092\u4f7f\u3063\u3066\u30a2\u30d7\u30ea\u3092\u8d77\u52d5\u3059\u308b\u3053\u3068\u3082\u63a8\u5968\u3057\u307e\u305b\u3093\u3002\u8aac\u660e\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>node\u30d0\u30a4\u30ca\u30ea\u3092\u76f4\u63a5\u547c\u3073\u51fa\u3059\u3053\u3068\u3092\u63a8\u5968\u3057\u307e\u3059\u3002\u5927\u304d\u304f\u306f\u3001Node.js\u30a2\u30d7\u30ea\u3067\u3053\u308c\u3092\u53d6\u308a\u6271\u3046\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306e\u6df7\u4e71\u3084\u8aa4\u89e3\u304c\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u3067\u898b\u3089\u308c\u308b\"PID 1\u554f\u984c\"\u306e\u305f\u3081\u3067\u3059\u3002 <strong>\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u3067\u306e\u6df7\u4e71\u3092\u89e3\u6d88\u3059\u308b\u305f\u3081\u3001\u5e38\u306bDocker\u3068Node.js\u306e\u9593\u306b\"init\"\u30c4\u30fc\u30eb\u3092\u914d\u7f6e\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3057\u3001\u30a2\u30d7\u30ea\u3092\u3086\u308b\u3084\u304b\u306b\u505c\u6b62\u3059\u308b\u65b9\u6cd5\u3092\u8003\u3048\u308b\u305f\u3081\u306b\u3088\u308a\u591a\u304f\u306e\u6642\u9593\u3092\u4f7f\u3046\u3079\u304d\u3067\u3059<\/strong>\u3002<\/p>\n<p>Node.js\u306fOS\u304b\u3089\u306eSIGINT\u3084SIGTERM\u306e\u3088\u3046\u306a\u30b7\u30b0\u30ca\u30eb\u3092\u53d7\u3051\u4ed8\u3051\u3001\u8ee2\u9001\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u30a2\u30d7\u30ea\u306e\u9069\u5207\u306a\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u306e\u305f\u3081\u306b\u91cd\u8981\u3067\u3059\u3002Node.js\u306f\u3001\u3053\u308c\u3089\u306e\u30b7\u30b0\u30ca\u30eb\u3092\u3069\u306e\u3088\u3046\u306b\u6271\u3046\u304b\u306e\u6c7a\u5b9a\u3092\u30a2\u30d7\u30ea\u306b\u4efb\u305b\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u30b7\u30b0\u30ca\u30eb\u3092\u6271\u3046\u30b3\u30fc\u30c9\u3092\u66f8\u304b\u306a\u304b\u3063\u305f\u308a\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u308f\u306a\u304b\u3063\u305f\u308a\u3059\u308b\u3068\u3001\u30a2\u30d7\u30ea\u306f\u3086\u308b\u3084\u304b\u306b\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3057\u306a\u3044\u3053\u3068\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30b7\u30b0\u30ca\u30eb\u3092\u7121\u8996\u3059\u308b\u3068\u3001Docker\u3067\u306f\u30c7\u30d5\u30a9\u30eb\u30c810\u79d2\u3001Kubernetes\u3067\u306f30\u79d2\u306e\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u306e\u5f8c\u306b\u5f37\u5236\u7d42\u4e86\u3055\u308c\u307e\u3059\u3002 <strong>\u672c\u756a\u74b0\u5883\u3067HTTP\u30a2\u30d7\u30ea\u3092\u8d77\u52d5\u3057\u305f\u3089\u3001\u30a2\u30d7\u30ea\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u305f\u3044\u3068\u304d\u306b\u5358\u306b\u63a5\u7d9a\u3092\u906e\u65ad\u3057\u3066\u3057\u307e\u308f\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306b\u3001\u3053\u306e\u3053\u3068\u306b\u3064\u3044\u3066\u3082\u3063\u3068\u305f\u304f\u3055\u3093\u306e\u6ce8\u610f\u3092\u6255\u3046\u3053\u3068\u306b\u306a\u308b\u3067\u3057\u3087\u3046\u3002<\/strong><\/p>\n<p><strong>\u4f8b\u3048\u3070npm\u306a\u3069\u306eNode.js\u3092\u8d77\u52d5\u3059\u308b\u4ed6\u306e\u30a2\u30d7\u30ea\u3092\u4f7f\u3063\u3066\u3044\u308b\u3068\u3001\u3053\u306e\u30b7\u30b0\u30ca\u30eb\u6a5f\u80fd\u3092\u58ca\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/strong> npm\u306f\u3053\u308c\u3089\u306e\u30b7\u30b0\u30ca\u30eb\u3092\u30a2\u30d7\u30ea\u306b\u6e21\u3055\u306a\u3044\u306e\u3067\u3001Dockerfile\u306eENTRYPOINT\u3068CMD\u304b\u3089\u306f\u53d6\u308a\u9664\u3044\u3066\u304a\u304f\u65b9\u304c\u3088\u3044\u3067\u3057\u3087\u3046\u3002\u30b3\u30f3\u30c6\u30ca\u5185\u3067\u5b9f\u884c\u3059\u308b\u30d0\u30a4\u30ca\u30ea\u30921\u3064\u5c11\u306a\u304f\u3067\u304d\u308b\u3068\u3044\u3046\u5229\u70b9\u3082\u3042\u308a\u307e\u3059\u3002\u4ed6\u306b\u3082\u3001\u5b9f\u969b\u306e\u8d77\u52d5\u30b3\u30de\u30f3\u30c9\u3092\u8abf\u3079\u308b\u305f\u3081\u306bpackage.json\u3092\u898b\u306a\u304f\u3066\u3082\u3001\u30b3\u30f3\u30c6\u30ca\u3092\u8d77\u52d5\u3057\u305f\u3068\u304d\u306b\u30a2\u30d7\u30ea\u304c\u5b9f\u884c\u3059\u308b <strong>\u305d\u306e\u3082\u306e<\/strong> \u304cDockerfile\u306b\u66f8\u3044\u3066\u3042\u308b\u306e\u3067\u3059\u3050\u308f\u304b\u308b\u3068\u3044\u3046\u5229\u70b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u305f\u3081\u306edocker run --init\u306e\u3088\u3046\u306a\u8d77\u52d5\u30aa\u30d7\u30b7\u30e7\u30f3\u3084Dockerfile\u3067<a href=\"https:\/\/github.com\/krallin\/tini\">tini<\/a>\u3092\u4f7f\u3046\u3053\u3068\u306b\u3064\u3044\u3066\u306e\u77e5\u8b58\u306f\u3001\u30a2\u30d7\u30ea\u306e\u30b3\u30fc\u30c9\u3092\u5909\u66f4\u3067\u304d\u306a\u3044\u3068\u304d\u306e\u3088\u3044\u4ee3\u66ff\u624b\u6bb5\u3067\u3059\u3002\u305d\u3046\u3060\u3068\u3057\u3066\u3082\u3001\u3086\u308b\u3084\u304b\u306a\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u306e\u305f\u3081\u306b\u6b63\u3057\u304f\u30b7\u30b0\u30ca\u30eb\u3092\u53d6\u308a\u6271\u3046\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3053\u3068\u304c\u3088\u308a\u3088\u3044\u89e3\u6c7a\u7b56\u3067\u3059\u3002\u4f8b\u3048\u3070<a href=\"https:\/\/github.com\/BretFisher\/node-docker-good-defaults\/blob\/69c923bc646bc96003e9ada55d1ec5ca943a1b19\/bin\/www#L16-L71\">\u79c1\u306e\u5b9a\u578b\u30b3\u30fc\u30c9<\/a>\u3084\u3001<a href=\"https:\/\/github.com\/hunterloftis\/stoppable\">stoppable<\/a>\u306e\u3088\u3046\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u63a2\u3059\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h2>\u3053\u308c\u3067\u3059\u3079\u3066\u3067\u3059\u304b\uff1f<\/h2>\n<p>\u3044\u3044\u3048\u3002\u3053\u308c\u3089\u306f\u307b\u307c\u3059\u3079\u3066\u306eNode.js\u30c1\u30fc\u30e0\u304c\u53d6\u308a\u6271\u3046\u95a2\u5fc3\u4e8b\u3067\u3001\u3053\u308c\u306b\u52a0\u3048\u3066\u3082\u3063\u3068\u591a\u304f\u306e\u4ed6\u306e\u8003\u616e\u70b9\u304c\u3042\u308a\u307e\u3059\u3002\u30de\u30eb\u30c1\u30b9\u30c6\u30fc\u30b8\u30d3\u30eb\u30c9\u3001HTTP\u30d7\u30ed\u30ad\u30b7\u3001npm install\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3001\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3001CVE\u30b9\u30ad\u30e3\u30f3\u3001\u30b3\u30f3\u30c6\u30ca\u30ed\u30b0\u3001\u30a4\u30e1\u30fc\u30b8\u69cb\u7bc9\u4e2d\u306e\u30c6\u30b9\u30c8\u3001\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9docker-compose\u8a2d\u5b9a\u306a\u3069\u306e\u30c8\u30d4\u30c3\u30af\u306f\u3001\u79c1\u306eNode.js\u306e\u9867\u5ba2\u3084\u751f\u5f92\u306e\u3088\u304f\u3042\u308b\u5171\u901a\u306e\u7591\u554f\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u3089\u306e\u30c8\u30d4\u30c3\u30af\u306b\u3064\u3044\u3066\u3088\u308a\u591a\u304f\u306e\u60c5\u5831\u306b\u8208\u5473\u304c\u3042\u308c\u3070\u3001<a href=\"https:\/\/www.youtube.com\/watch?v=Zgx0o8QjJk4\">\u79c1\u306eDockerCon 2019\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u30d3\u30c7\u30aa<\/a>\u3092\u3054\u89a7\u3044\u305f\u3060\u304f\u304b\u3001<a href=\"https:\/\/www.bretfisher.com\/node\">https:\/\/www.bretfisher.com\/node<\/a>\u306b\u3066Node.js\u3067\u306eDocker\u306b\u3064\u3044\u3066\u306e8\u6642\u9593\u306e\u30d3\u30c7\u30aa\u3092\u898b\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3054\u89a7\u3044\u305f\u3060\u304d\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002\u79c1\u306eTwitter\u30a2\u30ab\u30a6\u30f3\u30c8\u306f<a href=\"https:\/\/twitter.com\/bretfisher\">\u3053\u3061\u3089<\/a>\u3067\u3059\u3002\u6bce\u9031<a href=\"https:\/\/www.bretfisher.com\/newsletter\">DevOps\u3068Docker\u306e\u30cb\u30e5\u30fc\u30b9\u30ec\u30bf\u30fc<\/a>\u3092\u767a\u884c\u3057\u3066\u3044\u307e\u3059\u3002<a href=\"https:\/\/www.youtube.com\/channel\/UC0NErq0RhP51iXx64ZmyVfg\">\u9031\u520aYouTube\u30d3\u30c7\u30aa\u3068\u30e9\u30a4\u30d6<\/a>\u3092\u8cfc\u8aad\u3057\u3066\u304f\u3060\u3055\u3044\u3002<a href=\"https:\/\/www.bretfisher.com\/docker\">\u305d\u306e\u4ed6\u306eDocker\u30ea\u30bd\u30fc\u30b9\u3084\u30b3\u30fc\u30b9<\/a>\u3082\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>Docker\u3057\u307e\u3057\u3087\u3046\uff01<\/p>\n<p><strong>\u3082\u3063\u3068\u5b66\u3073\u305f\u3044\u3067\u3059\u304b\uff1f <a href=\"https:\/\/events.docker.com\/events\/details\/docker-docker-online-meetups-presents-nodejs-in-docker-tips-and-tricks-with-docker-captain-bret-fisher\/#\/\">8\u670828\u65e5\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u30df\u30fc\u30c8\u30a2\u30c3\u30d7<\/a> \u306b\u53c2\u52a0\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/strong><\/p>\n<hr \/>\n<p>\u539f\u6587: <a href=\"https:\/\/blog.docker.com\/2019\/07\/keep-nodejs-rockin-in-docker\/\">Top 4 Tactics To Keep Node.js Rockin' in Docker<\/a><\/p>\n\n\t\t<!--HubSpot Call-to-Action Code -->\n\t\t<span class=\"hs-cta-wrapper\" id=\"hs-cta-wrapper-bb0b7611-d1a4-4a87-836f-e48f9e476f1d\">\n\t\t<span class=\"hs-cta-node hs-cta-bb0b7611-d1a4-4a87-836f-e48f9e476f1d\" id=\"bb0b7611-d1a4-4a87-836f-e48f9e476f1d\">\n\t\t<!--[if lte IE 8]>\n\t\t<div id=\"hs-cta-ie-element\"><\/div>\n\t\t<![endif]-->\n\t\t<a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/6168413\/bb0b7611-d1a4-4a87-836f-e48f9e476f1d\" >\n\t\t<img decoding=\"async\" class=\"hs-cta-img\" id=\"hs-cta-img-bb0b7611-d1a4-4a87-836f-e48f9e476f1d\" style=\"border-width:0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/6168413\/bb0b7611-d1a4-4a87-836f-e48f9e476f1d.png\"  alt=\"New call-to-action\"\/>\n\t\t<\/a>\n\t\t<\/span>\n\t\t<script charset=\"utf-8\" src=\"\/\/js.hubspot.com\/cta\/current.js\"><\/script>\n\t\t<script>\n\t\thbspt.cta.load(6168413, 'bb0b7611-d1a4-4a87-836f-e48f9e476f1d', {});\n\t\t<\/script>\n\t\t<\/span>\n\t\t<!-- end HubSpot Call-to-Action Code -->\n\t\t\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u8a18\u4e8b\u306fDocker\u30ad\u30e3\u30d7\u30c6\u30f3\u306eBret Fisher\u6c0f\u306b\u3088\u308b\u30b2\u30b9\u30c8\u6295\u7a3f\u3067\u3059\u3002\u5f7c\u306fDevOps\u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u8005\u3092\u9577\u5e74\u52d9\u3081\u3001Docker Mastery for Node.js\u3092\u542b\u3080\u4eba\u6c17\u306eDocker Mastery\u30b3\u30fc\u30b9\u3001 [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":29423,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[43],"tags":[],"class_list":["post-29422","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-docker"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Docker\u3067Node.js\u30a2\u30d7\u30ea\u3092\u30a4\u30a4\u611f\u3058\u306b\u4fdd\u30644\u3064\u306e\u65b9\u6cd5 #docker - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3<\/title>\n<meta name=\"description\" content=\"Docker |\u672c\u8a18\u4e8b\u306fDocker\u30ad\u30e3\u30d7\u30c6\u30f3\u306eBret Fisher\u6c0f\u306b\u3088\u308b\u30b2\u30b9\u30c8\u6295\u7a3f\u3067\u3059\u3002\u5f7c\u306fDevOps\u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u8005\u3092\u9577\u5e74\u52d9\u3081\u3001Docker Mastery for\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/29422\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Docker\u3067Node.js\u30a2\u30d7\u30ea\u3092\u30a4\u30a4\u611f\u3058\u306b\u4fdd\u30644\u3064\u306e\u65b9\u6cd5 #docker - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"og:description\" content=\"Docker |\u672c\u8a18\u4e8b\u306fDocker\u30ad\u30e3\u30d7\u30c6\u30f3\u306eBret Fisher\u6c0f\u306b\u3088\u308b\u30b2\u30b9\u30c8\u6295\u7a3f\u3067\u3059\u3002\u5f7c\u306fDevOps\u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u8005\u3092\u9577\u5e74\u52d9\u3081\u3001Docker Mastery for\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/29422\" \/>\n<meta property=\"og:site_name\" content=\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/creationline\" \/>\n<meta property=\"article:published_time\" content=\"2019-08-14T02:00:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-09-11T08:34:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2019\/08\/01.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1110\" \/>\n\t<meta property=\"og:image:height\" content=\"624\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Daisuke Higuchi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@creationline\" \/>\n<meta name=\"twitter:site\" content=\"@creationline\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Daisuke Higuchi\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/29422#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/29422\"},\"author\":{\"name\":\"Daisuke Higuchi\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206\"},\"headline\":\"Docker\u3067Node.js\u30a2\u30d7\u30ea\u3092\u30a4\u30a4\u611f\u3058\u306b\u4fdd\u30644\u3064\u306e\u65b9\u6cd5 #docker\",\"datePublished\":\"2019-08-14T02:00:22+00:00\",\"dateModified\":\"2019-09-11T08:34:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/29422\"},\"wordCount\":335,\"image\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/29422#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2019\/08\/01.jpg\",\"articleSection\":[\"Docker\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/29422\",\"url\":\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/29422\",\"name\":\"Docker\u3067Node.js\u30a2\u30d7\u30ea\u3092\u30a4\u30a4\u611f\u3058\u306b\u4fdd\u30644\u3064\u306e\u65b9\u6cd5 #docker - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"isPartOf\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/29422#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/29422#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2019\/08\/01.jpg\",\"datePublished\":\"2019-08-14T02:00:22+00:00\",\"dateModified\":\"2019-09-11T08:34:29+00:00\",\"author\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206\"},\"description\":\"Docker |\u672c\u8a18\u4e8b\u306fDocker\u30ad\u30e3\u30d7\u30c6\u30f3\u306eBret Fisher\u6c0f\u306b\u3088\u308b\u30b2\u30b9\u30c8\u6295\u7a3f\u3067\u3059\u3002\u5f7c\u306fDevOps\u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u8005\u3092\u9577\u5e74\u52d9\u3081\u3001Docker Mastery for\",\"breadcrumb\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/29422#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/29422\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/29422#primaryimage\",\"url\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2019\/08\/01.jpg\",\"contentUrl\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2019\/08\/01.jpg\",\"width\":1110,\"height\":624},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/29422#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HOME\",\"item\":\"https:\/\/www.creationline.com\/tech-blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\",\"item\":\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Docker\",\"item\":\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Docker\u3067Node.js\u30a2\u30d7\u30ea\u3092\u30a4\u30a4\u611f\u3058\u306b\u4fdd\u30644\u3064\u306e\u65b9\u6cd5 #docker\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/#website\",\"url\":\"https:\/\/www.creationline.com\/tech-blog\/\",\"name\":\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"description\":\"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.creationline.com\/tech-blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206\",\"name\":\"Daisuke Higuchi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png\",\"url\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png\",\"contentUrl\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png\",\"caption\":\"Daisuke Higuchi\"},\"description\":\"Chef\u30fbDocker\u30fbMirantis\u88fd\u54c1\u306a\u3069\u306e\u6280\u8853\u8981\u7d20\u306b\u52a0\u3048\u3066\u3001\u4f1a\u8b70\u306e\u9032\u3081\u65b9\u30fb\u6587\u7ae0\u306e\u66f8\u304d\u65b9\u306a\u3069\u306e\u696d\u52d9\u6539\u5584\u306b\u3082\u53d6\u308a\u7d44\u3093\u3067\u3044\u307e\u3059\u3002\u300cChef\u6d3b\u7528\u30ac\u30a4\u30c9\u300d\u5171\u8457\u306e\u307b\u304b\u3001Debian Official Developer\u3082\u3084\u3063\u3066\u3044\u307e\u3059\u3002\",\"url\":\"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Docker\u3067Node.js\u30a2\u30d7\u30ea\u3092\u30a4\u30a4\u611f\u3058\u306b\u4fdd\u30644\u3064\u306e\u65b9\u6cd5 #docker - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"Docker |\u672c\u8a18\u4e8b\u306fDocker\u30ad\u30e3\u30d7\u30c6\u30f3\u306eBret Fisher\u6c0f\u306b\u3088\u308b\u30b2\u30b9\u30c8\u6295\u7a3f\u3067\u3059\u3002\u5f7c\u306fDevOps\u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u8005\u3092\u9577\u5e74\u52d9\u3081\u3001Docker Mastery for","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/29422","og_locale":"ja_JP","og_type":"article","og_title":"Docker\u3067Node.js\u30a2\u30d7\u30ea\u3092\u30a4\u30a4\u611f\u3058\u306b\u4fdd\u30644\u3064\u306e\u65b9\u6cd5 #docker - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","og_description":"Docker |\u672c\u8a18\u4e8b\u306fDocker\u30ad\u30e3\u30d7\u30c6\u30f3\u306eBret Fisher\u6c0f\u306b\u3088\u308b\u30b2\u30b9\u30c8\u6295\u7a3f\u3067\u3059\u3002\u5f7c\u306fDevOps\u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u8005\u3092\u9577\u5e74\u52d9\u3081\u3001Docker Mastery for","og_url":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/29422","og_site_name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","article_publisher":"https:\/\/www.facebook.com\/creationline","article_published_time":"2019-08-14T02:00:22+00:00","article_modified_time":"2019-09-11T08:34:29+00:00","og_image":[{"width":1110,"height":624,"url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2019\/08\/01.jpg","type":"image\/jpeg"}],"author":"Daisuke Higuchi","twitter_card":"summary_large_image","twitter_creator":"@creationline","twitter_site":"@creationline","twitter_misc":{"\u57f7\u7b46\u8005":"Daisuke Higuchi","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"2\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/29422#article","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/29422"},"author":{"name":"Daisuke Higuchi","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206"},"headline":"Docker\u3067Node.js\u30a2\u30d7\u30ea\u3092\u30a4\u30a4\u611f\u3058\u306b\u4fdd\u30644\u3064\u306e\u65b9\u6cd5 #docker","datePublished":"2019-08-14T02:00:22+00:00","dateModified":"2019-09-11T08:34:29+00:00","mainEntityOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/29422"},"wordCount":335,"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/29422#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2019\/08\/01.jpg","articleSection":["Docker"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/29422","url":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/29422","name":"Docker\u3067Node.js\u30a2\u30d7\u30ea\u3092\u30a4\u30a4\u611f\u3058\u306b\u4fdd\u30644\u3064\u306e\u65b9\u6cd5 #docker - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/29422#primaryimage"},"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/29422#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2019\/08\/01.jpg","datePublished":"2019-08-14T02:00:22+00:00","dateModified":"2019-09-11T08:34:29+00:00","author":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206"},"description":"Docker |\u672c\u8a18\u4e8b\u306fDocker\u30ad\u30e3\u30d7\u30c6\u30f3\u306eBret Fisher\u6c0f\u306b\u3088\u308b\u30b2\u30b9\u30c8\u6295\u7a3f\u3067\u3059\u3002\u5f7c\u306fDevOps\u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u8005\u3092\u9577\u5e74\u52d9\u3081\u3001Docker Mastery for","breadcrumb":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/29422#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/29422"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/29422#primaryimage","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2019\/08\/01.jpg","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2019\/08\/01.jpg","width":1110,"height":624},{"@type":"BreadcrumbList","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/29422#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"HOME","item":"https:\/\/www.creationline.com\/tech-blog"},{"@type":"ListItem","position":2,"name":"\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6","item":"https:\/\/www.creationline.com\/tech-blog\/cloudnative"},{"@type":"ListItem","position":3,"name":"Docker","item":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker"},{"@type":"ListItem","position":4,"name":"Docker\u3067Node.js\u30a2\u30d7\u30ea\u3092\u30a4\u30a4\u611f\u3058\u306b\u4fdd\u30644\u3064\u306e\u65b9\u6cd5 #docker"}]},{"@type":"WebSite","@id":"https:\/\/www.creationline.com\/tech-blog\/#website","url":"https:\/\/www.creationline.com\/tech-blog\/","name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.creationline.com\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206","name":"Daisuke Higuchi","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png","caption":"Daisuke Higuchi"},"description":"Chef\u30fbDocker\u30fbMirantis\u88fd\u54c1\u306a\u3069\u306e\u6280\u8853\u8981\u7d20\u306b\u52a0\u3048\u3066\u3001\u4f1a\u8b70\u306e\u9032\u3081\u65b9\u30fb\u6587\u7ae0\u306e\u66f8\u304d\u65b9\u306a\u3069\u306e\u696d\u52d9\u6539\u5584\u306b\u3082\u53d6\u308a\u7d44\u3093\u3067\u3044\u307e\u3059\u3002\u300cChef\u6d3b\u7528\u30ac\u30a4\u30c9\u300d\u5171\u8457\u306e\u307b\u304b\u3001Debian Official Developer\u3082\u3084\u3063\u3066\u3044\u307e\u3059\u3002","url":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi"}]}},"_links":{"self":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/29422","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/comments?post=29422"}],"version-history":[{"count":2,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/29422\/revisions"}],"predecessor-version":[{"id":29858,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/29422\/revisions\/29858"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media\/29423"}],"wp:attachment":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=29422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=29422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=29422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}