{"id":400,"date":"2023-03-26T21:11:32","date_gmt":"2023-03-26T12:11:32","guid":{"rendered":"https:\/\/baitimedx.com\/?p=400"},"modified":"2023-03-26T21:11:33","modified_gmt":"2023-03-26T12:11:33","slug":"%e9%96%8b%e7%99%ba%e3%82%92%e5%8a%a0%e9%80%9f%e3%81%95%e3%81%9b%e3%82%8b%e9%9d%a9%e6%96%b0%e7%9a%84%e3%83%84%e3%83%bc%e3%83%abdocker%e3%81%ae%e5%9f%ba%e7%a4%8e-%e5%88%9d%e5%bf%83%e8%80%85%e5%90%91","status":"publish","type":"post","link":"https:\/\/baitimedx.com\/?p=400","title":{"rendered":"\u958b\u767a\u3092\u52a0\u901f\u3055\u305b\u308b\u9769\u65b0\u7684\u30c4\u30fc\u30ebDocker\u306e\u57fa\u790e - \u521d\u5fc3\u8005\u5411\u3051\u306b\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u307e\u3059\uff01"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"711\" src=\"https:\/\/baitimedx.com\/wp-content\/uploads\/2023\/03\/programmer-1653351_1280-1-1024x711.jpg\" alt=\"\" class=\"wp-image-402\" srcset=\"https:\/\/baitimedx.com\/wp-content\/uploads\/2023\/03\/programmer-1653351_1280-1-1024x711.jpg 1024w, https:\/\/baitimedx.com\/wp-content\/uploads\/2023\/03\/programmer-1653351_1280-1-300x208.jpg 300w, https:\/\/baitimedx.com\/wp-content\/uploads\/2023\/03\/programmer-1653351_1280-1-768x533.jpg 768w, https:\/\/baitimedx.com\/wp-content\/uploads\/2023\/03\/programmer-1653351_1280-1.jpg 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Docker\u306f\u3001\u958b\u767a\u8005\u3084\u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u8005\u306b\u3068\u3063\u3066\u9769\u65b0\u7684\u306a\u30c4\u30fc\u30eb\u3067\u3042\u308a\u3001\u7d99\u7d9a\u7684\u30a4\u30f3\u30c6\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3084\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u3092\u5bb9\u6613\u306b\u3057\u3001\u3055\u307e\u3056\u307e\u306a\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5b9f\u884c\u3092\u7c21\u7d20\u5316\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Docker\u306e\u57fa\u672c\u6982\u5ff5\u3084\u305d\u306e\u5229\u70b9\u3001\u305d\u3057\u3066Docker\u3092\u4f7f\u3063\u3066\u958b\u59cb\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Docker\u3068\u306f\u4f55\u304b\uff1f<\/h2>\n\n\n\n<p>Docker\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8efd\u91cf\u306a\u30b3\u30f3\u30c6\u30ca\u306b\u30d1\u30c3\u30b1\u30fc\u30b8\u30f3\u30b0\u3059\u308b\u3053\u3068\u3067\u3001\u958b\u767a\u3001\u914d\u5e03\u3001\u904b\u7528\u3092\u52b9\u7387\u5316\u3059\u308b\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u3059\u3002\u30b3\u30f3\u30c6\u30ca\u306f\u72ec\u7acb\u3057\u305f\u74b0\u5883\u3092\u63d0\u4f9b\u3057\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5b9f\u884c\u306b\u5fc5\u8981\u306a\u3059\u3079\u3066\u306e\u4f9d\u5b58\u95a2\u4fc2\u3084\u30ea\u30bd\u30fc\u30b9\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u958b\u767a\u8005\u306f\u30b7\u30b9\u30c6\u30e0\u306e\u30b3\u30f3\u30d5\u30a3\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306b\u60a9\u3080\u3053\u3068\u306a\u304f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u69cb\u7bc9\u306b\u96c6\u4e2d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u306a\u305cDocker\u304c\u91cd\u8981\u306a\u306e\u304b\uff1f<\/h2>\n\n\n\n<p>Docker\u306e\u4e3b\u306a\u5229\u70b9\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e00\u8cab\u6027\u3068\u518d\u73fe\u6027<\/h3>\n\n\n\n<p>Docker\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u74b0\u5883\u304c\u4e00\u8cab\u3057\u3001\u3069\u3053\u3067\u3082\u540c\u3058\u3088\u3046\u306b\u52d5\u4f5c\u3059\u308b\u3053\u3068\u304c\u4fdd\u8a3c\u3055\u308c\u307e\u3059\u3002\u958b\u767a\u8005\u306f\u3001\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u6210\u3057\u3001\u540c\u3058\u30b3\u30f3\u30c6\u30ca\u3092\u30c6\u30b9\u30c8\u3001\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u3001\u672c\u756a\u74b0\u5883\u306b\u30c7\u30d7\u30ed\u30a4\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7c21\u7d20\u5316\u3055\u308c\u305f\u4f9d\u5b58\u95a2\u4fc2\u7ba1\u7406<\/h3>\n\n\n\n<p>\u30b3\u30f3\u30c6\u30ca\u5185\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u4ed6\u306e\u30b7\u30b9\u30c6\u30e0\u3084\u30b3\u30f3\u30c6\u30ca\u3068\u5206\u96e2\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u4f9d\u5b58\u95a2\u4fc2\u306e\u7af6\u5408\u3084\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u554f\u984c\u3092\u5fc3\u914d\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7d20\u65e9\u3044\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u3068\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0<\/h3>\n\n\n\n<p>Docker\u30b3\u30f3\u30c6\u30ca\u306f\u3001\u3059\u3050\u306b\u8d77\u52d5\u3067\u304d\u308b\u305f\u3081\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u304c\u8fc5\u901f\u3067\u3059\u3002\u307e\u305f\u3001\u30b3\u30f3\u30c6\u30ca\u3092\u7c21\u5358\u306b\u8907\u88fd\u3057\u3066\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3<\/h3>\n\n\n\n<p>\u30b3\u30f3\u30c6\u30ca\u306f\u3001\u4ed6\u306e\u30b3\u30f3\u30c6\u30ca\u3084\u30db\u30b9\u30c8\u30b7\u30b9\u30c6\u30e0\u3068\u9694\u96e2\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u5229\u70b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Docker\u306e\u4e3b\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8<\/h2>\n\n\n\n<p>Docker\u306e\u30a8\u30b3\u30b7\u30b9\u30c6\u30e0\u306b\u306f\u3044\u304f\u3064\u304b\u306e\u91cd\u8981\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Docker Engine<\/h3>\n\n\n\n<p>Docker Engine\u306f\u3001\u30b3\u30f3\u30c6\u30ca\u306e\u4f5c\u6210\u3001\u904b\u7528\u3001\u7ba1\u7406\u3092\u62c5\u5f53\u3059\u308b\u4e2d\u5fc3\u7684\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3067\u3059\u3002Docker Engine\u306f\u3001Docker\u30c7\u30fc\u30e2\u30f3\u3001Docker API\u3001\u304a\u3088\u3073Docker CLI\u304b\u3089\u69cb\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Docker\u30a4\u30e1\u30fc\u30b8<\/h3>\n\n\n\n<p>Docker\u30a4\u30e1\u30fc\u30b8\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u305d\u306e\u5b9f\u884c\u74b0\u5883\u3092\u30d1\u30c3\u30b1\u30fc\u30b8\u5316\u3057\u305f\u3082\u306e\u3067\u3059\u3002\u30a4\u30e1\u30fc\u30b8\u306f\u3001Dockerfile\u3068\u3044\u3046\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306b\u3088\u3063\u3066\u5b9a\u7fa9\u3055\u308c\u307e\u3059\u3002Dockerfile\u306b\u306f\u3001\u30d9\u30fc\u30b9\u30a4\u30e1\u30fc\u30b8\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30b3\u30fc\u30c9\u3001\u4f9d\u5b58\u95a2\u4fc2\u3001\u304a\u3088\u3073\u69cb\u6210\u304c\u8a18\u8ff0\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Docker\u30b3\u30f3\u30c6\u30ca<\/h3>\n\n\n\n<p>Docker\u30b3\u30f3\u30c6\u30ca\u306f\u3001Docker\u30a4\u30e1\u30fc\u30b8\u304b\u3089\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3055\u308c\u308b\u5b9f\u884c\u74b0\u5883\u3067\u3059\u3002\u30b3\u30f3\u30c6\u30ca\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u305d\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u30ab\u30d7\u30bb\u30eb\u5316\u3057\u3001\u72ec\u7acb\u3057\u3066\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Docker Hub<\/h3>\n\n\n\n<p>Docker Hub\u306f\u3001Docker\u30a4\u30e1\u30fc\u30b8\u3092\u516c\u958b\u3001\u5171\u6709\u3001\u691c\u7d22\u3067\u304d\u308b\u30af\u30e9\u30a6\u30c9\u30d9\u30fc\u30b9\u306e\u30ec\u30b8\u30b9\u30c8\u30ea\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002Docker Hub\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u4ed6\u306e\u958b\u767a\u8005\u304c\u4f5c\u6210\u3057\u305f\u30a4\u30e1\u30fc\u30b8\u3092\u4f7f\u7528\u3057\u305f\u308a\u3001\u81ea\u5206\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u5171\u6709\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Docker\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n<p>Docker\u3092\u59cb\u3081\u308b\u305f\u3081\u306b\u306f\u3001\u307e\u305aDocker\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002Windows\u3001Mac\u3001Linux\u306e\u5404\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002\u516c\u5f0f\u306eDocker\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30ac\u30a4\u30c9\u3092\u53c2\u7167\u3057\u3066\u3001\u304a\u4f7f\u3044\u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b\u9069\u3057\u305f\u624b\u9806\u306b\u5f93\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Docker\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046<\/h2>\n\n\n\n<p>Docker\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u3001\u57fa\u672c\u7684\u306a\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066Docker\u3092\u4f7f\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Docker\u30a4\u30e1\u30fc\u30b8\u306e\u53d6\u5f97<\/h3>\n\n\n\n<p>Docker\u30a4\u30e1\u30fc\u30b8\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001<code>docker pull<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u516c\u5f0f\u306eUbuntu\u30a4\u30e1\u30fc\u30b8\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>docker pull ubuntu<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Docker\u30b3\u30f3\u30c6\u30ca\u306e\u4f5c\u6210\u3068\u5b9f\u884c<\/h3>\n\n\n\n<p><code>docker run<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30a4\u30e1\u30fc\u30b8\u304b\u3089\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u6210\u3057\u3001\u5b9f\u884c\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u4f8b\u3067\u306f\u3001\u5148\u307b\u3069\u53d6\u5f97\u3057\u305fUbuntu\u30a4\u30e1\u30fc\u30b8\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u6210\u3057\u3001\u30b7\u30a7\u30eb\u3092\u958b\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>docker run -it ubuntu bash<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Docker\u30b3\u30f3\u30c6\u30ca\u306e\u4e00\u89a7\u8868\u793a\u3068\u7ba1\u7406<\/h3>\n\n\n\n<p><code>docker ps<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u5b9f\u884c\u4e2d\u306e\u30b3\u30f3\u30c6\u30ca\u306e\u4e00\u89a7\u3092\u8868\u793a\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001<code>-a<\/code>\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u3001\u505c\u6b62\u3057\u3066\u3044\u308b\u30b3\u30f3\u30c6\u30ca\u3082\u542b\u3081\u3066\u3059\u3079\u3066\u306e\u30b3\u30f3\u30c6\u30ca\u3092\u8868\u793a\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>docker ps\ndocker ps -a<\/code><\/pre>\n\n\n\n<p>\u30b3\u30f3\u30c6\u30ca\u3092\u505c\u6b62\u3059\u308b\u306b\u306f\u3001<code>docker stop<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u540c\u69d8\u306b\u3001\u30b3\u30f3\u30c6\u30ca\u3092\u518d\u8d77\u52d5\u3059\u308b\u306b\u306f<code>docker restart<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>docker stop [CONTAINER_ID]\ndocker restart [CONTAINER_ID]<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Docker\u30a4\u30e1\u30fc\u30b8\u306e\u30d3\u30eb\u30c9<\/h3>\n\n\n\n<p>\u72ec\u81ea\u306eDocker\u30a4\u30e1\u30fc\u30b8\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u307e\u305aDockerfile\u3092\u4f5c\u6210\u3057\u3001\u305d\u306e\u5f8c<code>docker build<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001\u30b7\u30f3\u30d7\u30eb\u306aDockerfile\u306e\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code># \u30d9\u30fc\u30b9\u30a4\u30e1\u30fc\u30b8\u306e\u6307\u5b9a\nFROM ubuntu\n\n# \u30e1\u30f3\u30c6\u30ca\u60c5\u5831\nLABEL maintainer=\"your.email@example.com\"\n\n# \u5fc5\u8981\u306a\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\nRUN apt-get update &amp;&amp; apt-get install -y \\\n    curl \\\n    git \\\n    vim\n\n# \u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u8a2d\u5b9a\nWORKDIR \/app<\/code><\/pre>\n\n\n\n<p>\u3053\u306eDockerfile\u304c\u3042\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u30a4\u30e1\u30fc\u30b8\u3092\u30d3\u30eb\u30c9\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>docker build -t your-image-name .<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Docker\u30a4\u30e1\u30fc\u30b8\u306e\u516c\u958b<\/h3>\n\n\n\n<p>\u72ec\u81ea\u306e\u30a4\u30e1\u30fc\u30b8\u3092Docker Hub\u306b\u516c\u958b\u3059\u308b\u306b\u306f\u3001\u307e\u305aDocker Hub\u306b\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u3001<code>docker login<\/code>\u30b3\u30de\u30f3\u30c9\u3067\u8a8d\u8a3c\u3057\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001<code>docker tag<\/code>\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30e1\u30fc\u30b8\u306b\u30bf\u30b0\u3092\u4ed8\u3051\u3001<code>docker push<\/code>\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30e1\u30fc\u30b8\u3092\u516c\u958b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>docker login\ndocker tag your-image-name your-username\/your-repo-name:your-tag\ndocker push your-username\/your-repo-name:your-tag<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Docker Compose<\/h2>\n\n\n\n<p>Docker Compose\u306f\u3001\u8907\u6570\u306e\u30b3\u30f3\u30c6\u30ca\u3092\u5b9a\u7fa9\u3057\u3001\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u30c4\u30fc\u30eb\u3067\u3059\u3002Docker Compose\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u7570\u306a\u308b\u30b5\u30fc\u30d3\u30b9\u9593\u306e\u4f9d\u5b58\u95a2\u4fc2\u3084\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u3092\u7c21\u5358\u306b\u5b9a\u7fa9\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Docker Compose\u306f\u3001<code>docker-compose.yml<\/code>\u3068\u3044\u3046YAML\u30d5\u30a1\u30a4\u30eb\u3067\u5b9a\u7fa9\u3055\u308c\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001\u30b7\u30f3\u30d7\u30eb\u306a<code>docker-compose.yml<\/code>\u306e\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>version: \"3\"\n\nservices:\n  web:\n    build: .\/web\n    ports:\n      - \"80:80\"\n  db:\n    image: \"postgres\"\n    environment:\n      POSTGRES_PASSWORD: example<\/code><\/pre>\n\n\n\n<p><code>docker-compose up<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001Docker Compose\u306f\u5b9a\u7fa9\u3055\u308c\u305f\u3059\u3079\u3066\u306e\u30b5\u30fc\u30d3\u30b9\u306e\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u6210\u3057\u3001\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>docker-compose up<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>Docker\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u3001\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u3001\u904b\u7528\u306e\u52b9\u7387\u5316\u3092\u76ee\u6307\u3059\u9769\u65b0\u7684\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002\u30b3\u30f3\u30c6\u30ca\u6280\u8853\u3092\u6d3b\u7528\u3057\u3066\u3001\u74b0\u5883\u306e\u4e00\u8cab\u6027\u3001\u4f9d\u5b58\u95a2\u4fc2\u306e\u7ba1\u7406\u3001\u8fc5\u901f\u306a\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u3001\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u3001\u304a\u3088\u3073\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u5411\u4e0a\u304c\u5b9f\u73fe\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Docker\u306e\u57fa\u672c\u6982\u5ff5\u3001\u305d\u306e\u5229\u70b9\u3001\u4e3b\u8981\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3001\u57fa\u672c\u7684\u306a\u30b3\u30de\u30f3\u30c9\u3001Docker Compose\u306e\u7d39\u4ecb\u306a\u3069\u3001Docker\u306e\u57fa\u790e\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>Docker\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u958b\u767a\u8005\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u69cb\u7bc9\u306b\u96c6\u4e2d\u3067\u304d\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u30b3\u30f3\u30d5\u30a3\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3084\u74b0\u5883\u306e\u9055\u3044\u306b\u60a9\u3080\u3053\u3068\u304c\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u307e\u305f\u3001Docker Compose\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u8907\u6570\u306e\u30b3\u30f3\u30c6\u30ca\u3092\u7c21\u5358\u306b\u7ba1\u7406\u3057\u3001\u958b\u767a\u30d7\u30ed\u30bb\u30b9\u3092\u3055\u3089\u306b\u7c21\u7d20\u5316\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Docker\u306e\u30a8\u30b3\u30b7\u30b9\u30c6\u30e0\u306f\u975e\u5e38\u306b\u5e83\u7bc4\u3067\u3042\u308a\u3001\u3053\u306e\u8a18\u4e8b\u3067\u306f\u89e6\u308c\u3089\u308c\u306a\u304b\u3063\u305f\u591a\u304f\u306e\u9ad8\u5ea6\u306a\u6a5f\u80fd\u3084\u30c4\u30fc\u30eb\u304c\u5b58\u5728\u3057\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u3053\u306e\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u305f\u57fa\u672c\u6982\u5ff5\u3068\u30b3\u30de\u30f3\u30c9\u3092\u7406\u89e3\u3057\u3001\u5b9f\u8df5\u3059\u308b\u3053\u3068\u3067\u3001Docker\u3092\u4f7f\u3063\u305f\u958b\u767a\u30d7\u30ed\u30bb\u30b9\u306e\u52b9\u7387\u5316\u304c\u5b9f\u611f\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u4eca\u5f8c\u306e\u5b66\u7fd2\u306b\u5411\u3051\u3066\u3001Docker\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3084\u95a2\u9023\u66f8\u7c4d\u3001\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u53c2\u7167\u3057\u3001Docker\u306e\u6a5f\u80fd\u3092\u3055\u3089\u306b\u6df1\u304f\u7406\u89e3\u3057\u3001\u5b9f\u8df5\u3057\u3066\u3044\u304f\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002Docker\u3092\u4f7f\u3044\u3053\u306a\u3059\u3053\u3068\u3067\u3001\u958b\u767a\u3001\u30c6\u30b9\u30c8\u3001\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u5287\u7684\u306b\u6539\u5584\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u662f\u975e\u4f7f\u3044\u3053\u306a\u305b\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u3087\u3046\uff01<\/p>\n\n\n\n<p>\u4eca\u5f8c\u3082\u3001IT\u3084DX\u3001\u6295\u8cc7\u7b49\u306b\u95a2\u3059\u308b\u4eba\u751f\u3092\u8c4a\u304b\u306b\u3057\u3066\u81ea\u7531\u306a\u6642\u9593\u3092\u5897\u3084\u305b\u308b\u3088\u3046\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u304d\u307e\u3059\u306e\u3067\u662f\u975e\u304a\u697d\u3057\u307f\u306b\uff01<\/p>\n\n\n\n<p><strong>\u2193\u3000\u30aa\u30b9\u30b9\u30e1\u8a18\u4e8b\u3000\u2193<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/baitimedx.com\/?p=397\">\u4e0b\u843d\u3067\u5f97\u3059\u308b\uff1f\u30a4\u30f3\u30d0\u30fc\u30b9\u578b\u6295\u8cc7\u4fe1\u8a17\u306e\u6d3b\u7528\u8853 &#8211; \u30ea\u30b9\u30af\u30d8\u30c3\u30b8\u304b\u3089\u9078\u3073\u65b9\u307e\u3067\u5fb9\u5e95\u89e3\u8aac<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/baitimedx.com\/?p=394\">\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01ETF\u6295\u8cc7\u5165\u9580 &#8211; ETF\u306e\u7a2e\u985e\u3001\u9078\u3073\u65b9\u3001\u7a0e\u91d1\u3001\u904b\u7528\u4f1a\u793e\u306b\u3064\u3044\u3066<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/baitimedx.com\/?p=391\">RCI\uff1f\u65e5\u672c\u4eba\u304c\u8003\u3048\u305f\u30c6\u30af\u30cb\u30ab\u30eb\uff1f &#8211; \u30e9\u30f3\u30ad\u30f3\u30b0\u76f8\u95a2\u6307\u6570\u3067\u904e\u8cb7\u3044\u30fb\u904e\u58f2\u308a\u3092\u898b\u6975\u3081\u308b\u6226\u7565<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Docker\u306f\u3001\u958b\u767a\u8005\u3084\u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u8005\u306b\u3068\u3063\u3066\u9769\u65b0\u7684\u306a\u30c4\u30fc\u30eb\u3067\u3042\u308a\u3001\u7d99\u7d9a\u7684\u30a4\u30f3\u30c6\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3084\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u3092\u5bb9\u6613\u306b\u3057\u3001\u3055\u307e\u3056\u307e\u306a\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5b9f\u884c\u3092\u7c21\u7d20\u5316\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":402,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","jetpack_publicize_message":"\u958b\u767a\u3092\u52a0\u901f\u3055\u305b\u308b\u9769\u65b0\u7684\u30c4\u30fc\u30ebDocker\u306e\u57fa\u790e - \u521d\u5fc3\u8005\u5411\u3051\u306b\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u307e\u3059\uff01","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[10,11],"tags":[24,17,16],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/baitimedx.com\/wp-content\/uploads\/2023\/03\/programmer-1653351_1280-1.jpg","_links":{"self":[{"href":"https:\/\/baitimedx.com\/index.php?rest_route=\/wp\/v2\/posts\/400"}],"collection":[{"href":"https:\/\/baitimedx.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/baitimedx.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/baitimedx.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/baitimedx.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=400"}],"version-history":[{"count":2,"href":"https:\/\/baitimedx.com\/index.php?rest_route=\/wp\/v2\/posts\/400\/revisions"}],"predecessor-version":[{"id":403,"href":"https:\/\/baitimedx.com\/index.php?rest_route=\/wp\/v2\/posts\/400\/revisions\/403"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/baitimedx.com\/index.php?rest_route=\/wp\/v2\/media\/402"}],"wp:attachment":[{"href":"https:\/\/baitimedx.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/baitimedx.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=400"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/baitimedx.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}