{"id":630,"date":"2019-03-01T20:45:40","date_gmt":"2019-03-01T11:45:40","guid":{"rendered":"http:\/\/www.ranran.mydns.jp\/blog\/?p=630"},"modified":"2019-03-02T15:46:44","modified_gmt":"2019-03-02T06:46:44","slug":"docker%e3%82%b3%e3%83%b3%e3%83%86%e3%83%8a%e3%81%a7%e3%83%9d%e3%83%bc%e3%83%88%e5%a4%89%e6%9b%b4%e3%81%9b%e3%81%9a%e3%81%ab%e5%85%b1%e5%ad%98%e3%81%95%e3%81%9b%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"http:\/\/www.ranran.mydns.jp\/blog\/?p=630","title":{"rendered":"Docker\u30b3\u30f3\u30c6\u30ca\u3067\u30dd\u30fc\u30c8\u5909\u66f4\u305b\u305a\u306b\u5171\u5b58\u3055\u305b\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>Docker\u3067\u30b5\u30fc\u30d3\u30b9\u3092\u8d77\u52d5\u3055\u305b\u308b\u5834\u5408<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# docker run -p 80:80 wordpress\r\n<\/pre>\n<p>\u3084<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nwordpress:\r\n  image: wordpress\r\n  ports:\r\n    - &quot;80:80&quot;\r\n<\/pre>\n<p>\u3063\u3066\u611f\u3058\u3067\u30dd\u30fc\u30c8\u3092\u958b\u3051\u307e\u3059\u306d\u3002<\/p>\n<p>\u3067\u3082\u3053\u306e\u30dd\u30fc\u30c8\u304c\u304b\u3076\u3063\u3066\u3044\u305f\u5834\u5408\u306f\u3069\u3046\u3057\u307e\u3059\u304b\uff1f<\/p>\n<p>&#8220;81:80&#8221;, &#8220;82:80&#8221;, &#8220;83:80&#8221; \u3063\u3066\u958b\u653e\u3059\u308b\u30dd\u30fc\u30c8\u3092\u305a\u3089\u3057\u3066\u8d77\u52d5\u3057\u307e\u3059\uff1f<\/p>\n<p>&nbsp;<\/p>\n<p>\u305d\u308c\u3067\u3082\u826f\u3044\u3067\u3059\u304cDocker\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u6a5f\u80fd\u3092\u4f7f\u3046\u3053\u3068\u3067<\/p>\n<p>\u30dd\u30fc\u30c8\u3092\u5909\u66f4\u305b\u305a\u306b\u540c\u5c45\u3055\u305b\u308b\u65b9\u6cd5\u304c\u3042\u308b\u306e\u3067\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u25a0\u65b9\u6cd5<\/p>\n<p>\u3084\u308a\u65b9\u306f\u7c21\u5358\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8d77\u52d5\u30b3\u30f3\u30c6\u30ca\u306b\u56fa\u5b9a\u306eIP\u30a2\u30c9\u30ec\u30b9\u5272\u308a\u5f53\u3066\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nversion: '3'\r\nservices:\r\n  concrete5:\r\n    image: concrete5\r\n    restart: always\r\n    networks:\r\n      vpcbr:\r\n        ipv4_address: 172.168.0.2\r\n  wordpress:\r\n    image: wordpress\r\n    restart: always\r\n    networks:\r\n      vpcbr:\r\n        ipv4_address: 172.168.0.3\r\nnetworks:\r\n  vpcbr:\r\n    driver: bridge\r\n    ipam:\r\n      config:\r\n        - subnet: 172.168.0.0\/16\r\n          gateway: 172.168.0.1\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u5f8c\u306f\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u8a2d\u5b9a\u306b\u56fa\u5b9a\u5316\u3057\u305fIP\u30a2\u30c9\u30ec\u30b9\u3092\u8a2d\u5b9a\u3059\u308b\u3059\u308c\u3070<\/p>\n<p>\u30dd\u30fc\u30c8\u5909\u66f4\u306e\u5fc5\u8981\u306a\u304f\u30b5\u30fc\u30d3\u30b9\u3092\u540c\u5c45\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u25a0\u88dc\u8db3<\/p>\n<p>\u5f53\u7136\u3067\u3059\u304c\u540c\u3058Docker\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u4e0a\u306b\u3044\u308b\u3053\u3068\u304c\u6761\u4ef6\u3067\u3059\u3002<\/p>\n<p>\u8907\u6570\u30db\u30b9\u30c8\u3067\u904b\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u76f8\u4e92\u306b\u901a\u4fe1\u3067\u304d\u308b\u3088\u3046\u306bDocker\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u69cb\u7bc9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"http:\/\/www.ranran.mydns.jp\/blog\/wp-content\/uploads\/2019\/03\/50ccb8990889fff191dd51c6df78d916.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"border: 1px solid #222222; aligncenter wp-image-641 size-thumbnail\" src=\"http:\/\/www.ranran.mydns.jp\/blog\/wp-content\/uploads\/2019\/03\/50ccb8990889fff191dd51c6df78d916-400x300.png\" alt=\"\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a4\u30e1\u30fc\u30b8\" width=\"400\" height=\"300\" \/><\/a><\/p>\n<p>\uff08\u5f53\u30b5\u30fc\u30d0\u30fc\u3067\u306f\u30db\u30b9\u30c8\u4e0a\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fNginx\u3067\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3057\u3066\u3044\u307e\u3059\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Docker\u3067\u30b5\u30fc\u30d3\u30b9\u3092\u8d77\u52d5\u3055\u305b\u308b\u5834\u5408 # docker run -p 80:80 wordpress \u3084 wordpress: image: wordpress ports: &#8211; &quot;80:80&quot; \u3063 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-630","post","type-post","status-publish","format-standard","hentry","category-docker"],"_links":{"self":[{"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/630","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=630"}],"version-history":[{"count":13,"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/630\/revisions"}],"predecessor-version":[{"id":644,"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/630\/revisions\/644"}],"wp:attachment":[{"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=630"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=630"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}