{"id":3522,"date":"2024-03-24T16:21:58","date_gmt":"2024-03-24T07:21:58","guid":{"rendered":"https:\/\/blue-bear.jp\/kb\/?p=3522"},"modified":"2024-03-30T16:37:19","modified_gmt":"2024-03-30T07:37:19","slug":"amazon-linux%e3%81%abdocker-compose-v2%e4%bb%a5%e9%99%8d%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/blue-bear.jp\/kb\/amazon-linux%e3%81%abdocker-compose-v2%e4%bb%a5%e9%99%8d%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","title":{"rendered":"Amazon Linux2023\u306bdocker compose v2\u4ee5\u964d\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"\n<p>Amazon Linux\u306bdocker compose v2\u4ee5\u964d\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u306f\u4ee5\u4e0b\u306e\u901a\u308a<\/p>\n\n\n\n<p>docker compose\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308a\u3001docker-compose\u3067\u306f\u306a\u3044\u3082\u306e\u304cv2<\/p>\n\n\n\n<p>\u305d\u306e\u524d\u306bDocker\u81ea\u4f53\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304f<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-bluebear-i-o wp-block-embed-bluebear-i-o\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"DeLaHmi4pF\"><a href=\"https:\/\/blue-bear.jp\/kb\/amazon-linux2023%e3%81%abdocker%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\">Amazon Linux2023\u306bDocker\/Docker Compose\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Amazon Linux2023\u306bDocker\/Docker Compose\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5&#8221; &#8212; Bluebear I\/O\" src=\"https:\/\/blue-bear.jp\/kb\/amazon-linux2023%e3%81%abdocker%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/embed\/#?secret=k2Ia2NzkBf#?secret=DeLaHmi4pF\" data-secret=\"DeLaHmi4pF\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>YUM\u3067\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u306a\u3044\u306e\u3067\u3001\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u3092\u76f4\u63a5\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo su\n\nDOCKER_CONFIG=${DOCKER_CONFIG:-$HOME\/.docker}\n\nmkdir -p $DOCKER_CONFIG\/cli-plugins\n\ncurl -SL https:\/\/github.com\/docker\/compose\/releases\/download\/v2.26.0\/docker-compose-linux-x86_64 -o $DOCKER_CONFIG\/cli-plugins\/docker-compose\n\nchmod +x $DOCKER_CONFIG\/cli-plugins\/docker-compose\n\ndocker compose version<\/code><\/pre>\n\n\n\n<p>\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u8868\u793a\u3055\u308c\u308c\u3070OK<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c8<\/h2>\n\n\n\n<p>\u53e4\u3044docker compose\u306f&#8211;profile\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u306a\u3044\u306e\u3067\u3001&#8211;profile\u304c\u5fc5\u8981\u306a\u306e\u3067\u3042\u308c\u3070\u6700\u65b0\u306edocker compose\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068<\/p>\n\n\n\n<p>\u4e0a\u306e\u30b3\u30de\u30f3\u30c9\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306fv2.26.0\u306a\u306e\u3067&#8211;profile\u304c\u52d5\u4f5c\u3059\u308b\u304c\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u306e\u53e4\u3044\u8a18\u4e8b\u3060\u3068\u53e4\u3044docker compose\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u3066\u3001\u300cunknown flag: &#8211;profile\u300d\u30a8\u30e9\u30fc\u3067&#8211;profile\u304c\u52d5\u4f5c\u3057\u306a\u3044\u5834\u5408\u304c\u3042\u308b\u306e\u3067\u3001\u6700\u65b0\u7248\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -SL https:\/\/github.com\/docker\/compose\/releases\/download\/&lt;****\u3053\u3053\u3092\u6700\u65b0version\u306b\u3059\u308b\u3053\u3068****&gt;\/docker-compose-linux-x86_64 -o $DOCKER_CONFIG\/cli-plugins\/docker-compose<\/code><\/pre>\n\n\n\n<p>\u6700\u65b0\u7248\u306f\u4e0b\u8a18\u516c\u5f0f\u30b5\u30a4\u30c8\u3067\u78ba\u8a8d\u3059\u308b\u3053\u3068<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/docker\/compose\/releases\">https:\/\/github.com\/docker\/compose\/releases<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Amazon Linux\u306bdocker <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[206],"tags":[516],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/3522"}],"collection":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/comments?post=3522"}],"version-history":[{"count":7,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/3522\/revisions"}],"predecessor-version":[{"id":3538,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/3522\/revisions\/3538"}],"wp:attachment":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/media?parent=3522"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/categories?post=3522"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/tags?post=3522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}