{"id":20088,"date":"2022-11-12T20:27:11","date_gmt":"2022-11-12T11:27:11","guid":{"rendered":"https:\/\/www.d0web.com\/blog\/?p=20088"},"modified":"2022-11-12T20:28:22","modified_gmt":"2022-11-12T11:28:22","slug":"visual-studio-code-dev-container%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6docker-compose%e3%81%a7%e3%82%b3%e3%83%b3%e3%83%86%e3%83%8a%e3%82%92%e8%b5%b7%e5%8b%95%e3%81%97%e3%82%88%e3%81%86%e3%82%82comman","status":"publish","type":"post","link":"https:\/\/www.d0web.com\/blog\/archives\/20088","title":{"rendered":"[Visual Studio Code] Dev Container\u3092\u4f7f\u3063\u3066Docker Compose\u3067\u30b3\u30f3\u30c6\u30ca\u3092\u8d77\u52d5\u3057\u3088\u3046\u3082&#8221;Command failed&#8221;\u3060\u3051\u8868\u793a\u3055\u308c\u308b\u5834\u5408\u306e\u5bfe\u51e6"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">\u3042\u3089\u3059\u3058<\/h1>\n\n\n\n<p>VSCode\u306e\u62e1\u5f35\u6a5f\u80fd&#8221;Dev Container&#8221;\u3067.devcontiner.json\u3068docker-compose.yml\u3092\u7528\u610f\u3057\u3066&#8221;Rebuild and Reopen in Container&#8221;\u306a\u3069\u3067\u30b3\u30f3\u30c6\u30ca\u3092\u30d3\u30eb\u30c9\u3057\u3088\u3046\u306b\u3082\u3001&#8221;Command failed ~~~~&#8221; \u3057\u304b\u8868\u8a18\u3055\u308c\u305f\u4f55\u306e\u5f79\u306b\u3082\u7acb\u305f\u306a\u3044\u30a8\u30e9\u30fc\u30c0\u30a4\u30a2\u30ed\u30b0\u3060\u3051\u8868\u793a\u3055\u308c\u308b\u5834\u5408\u304c\u3042\u308a\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u6210\u3067\u304d\u306a\u304f\u306a\u3063\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.d0web.com\/blog\/wp-content\/uploads\/2022\/11\/image-1.png\"><img decoding=\"async\" width=\"553\" height=\"212\" src=\"https:\/\/www.d0web.com\/blog\/wp-content\/uploads\/2022\/11\/image-1.png\" alt=\"\" class=\"wp-image-20092\" srcset=\"https:\/\/www.d0web.com\/blog\/wp-content\/uploads\/2022\/11\/image-1.png 553w, https:\/\/www.d0web.com\/blog\/wp-content\/uploads\/2022\/11\/image-1-300x115.png 300w\" sizes=\"(max-width: 553px) 100vw, 553px\" \/><\/a><\/figure>\n\n\n\n<p>OUTPUT\u306e&#8221;Log (Extension Host)&#8221;\u306b\u3082\u30ed\u30b0\u304c\u51fa\u529b\u3055\u308c\u3066\u3044\u308b\u304c\u307b\u307c\u540c\u69d8\u306e\u5185\u5bb9\u3067\u4f55\u3082\u5f79\u306b\u7acb\u305f\u306a\u3044\u3002\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3044\u308b\u306e\u306f\u5206\u304b\u308b\u304c\u3069\u3046\u3044\u3046\u539f\u56e0\u3067\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u306e\u304b\u8868\u8a18\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u4f55\u3092\u3057\u305f\u3089\u89e3\u6c7a\u3059\u308b\u306e\u304b\u5b8c\u5168\u306b\u4e0d\u660e\u306a\u72b6\u614b\u3068\u306a\u3063\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-thumbnail\"><a href=\"https:\/\/www.d0web.com\/blog\/wp-content\/uploads\/2022\/11\/image-2.png\"><img decoding=\"async\" width=\"600\" height=\"132\" src=\"https:\/\/www.d0web.com\/blog\/wp-content\/uploads\/2022\/11\/image-2-600x132.png\" alt=\"\" class=\"wp-image-20093\" srcset=\"https:\/\/www.d0web.com\/blog\/wp-content\/uploads\/2022\/11\/image-2-600x132.png 600w, https:\/\/www.d0web.com\/blog\/wp-content\/uploads\/2022\/11\/image-2-300x66.png 300w, https:\/\/www.d0web.com\/blog\/wp-content\/uploads\/2022\/11\/image-2-768x169.png 768w, https:\/\/www.d0web.com\/blog\/wp-content\/uploads\/2022\/11\/image-2.png 911w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u89e3\u6c7a<\/h1>\n\n\n\n<p>\u96e3\u3057\u3044\u4e8b\u3092\u8003\u3048\u305a\u306bDev Container\u3092\u4ecb\u3055\u305a\u76f4\u63a5\u30bf\u30fc\u30df\u30ca\u30eb\u3067<code>docker compose up<\/code>\u3067\u30d3\u30eb\u30c9\u3057\u3066\u307f\u305f\u3002<\/p>\n\n\n\n<p>\u305d\u3046\u3059\u308b\u3068\u3001\u4eca\u56de\u306e\u5834\u5408\u306fdocker-compose.yml\u3067\u6307\u5b9a\u3057\u3066\u3044\u308b&#8221;configuration.env&#8221;\u304c\u898b\u3064\u304b\u3089\u306a\u304b\u3063\u305f\u3088\u3068\u3061\u3083\u3093\u3068\u30a8\u30e9\u30fc\u3068\u306a\u308b\u539f\u56e0\u304c\u8868\u793a\u3055\u308c\u305f\u3002\u305f\u3057\u304b\u306b\u5b58\u5728\u3057\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u3060\u3063\u305f\u306e\u3067\u4f5c\u6210\u3057\u305f\u3068\u3053\u308dVSCode\u4e0a\u306eDev Container\u3067\u518d\u5ea6\u5b9f\u884c\u3057\u305f\u3089\u6b63\u5e38\u306b\u30b3\u30f3\u30c6\u30ca\u304c\u4f5c\u6210\u3055\u308c\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-thumbnail\"><a href=\"https:\/\/www.d0web.com\/blog\/wp-content\/uploads\/2022\/11\/image-3.png\"><img decoding=\"async\" width=\"600\" height=\"49\" src=\"https:\/\/www.d0web.com\/blog\/wp-content\/uploads\/2022\/11\/image-3-600x49.png\" alt=\"\" class=\"wp-image-20095\" srcset=\"https:\/\/www.d0web.com\/blog\/wp-content\/uploads\/2022\/11\/image-3-600x49.png 600w, https:\/\/www.d0web.com\/blog\/wp-content\/uploads\/2022\/11\/image-3-300x24.png 300w, https:\/\/www.d0web.com\/blog\/wp-content\/uploads\/2022\/11\/image-3-768x62.png 768w, https:\/\/www.d0web.com\/blog\/wp-content\/uploads\/2022\/11\/image-3.png 935w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><\/figure>\n\n\n\n<p>\u30a8\u30e9\u30fc\u306e\u5185\u5bb9\u306f\u69d8\u3005\u306a\u306e\u3067\u90fd\u5ea6\u5bfe\u5fdc\u3059\u308b\u3068\u826f\u3044\u3002<br>\u305d\u3082\u305d\u3082Dev Container\u3067docker compose\u306e\u30a8\u30e9\u30fc\u30ed\u30b0\u3092\u30ad\u30c1\u30f3\u3068\u51fa\u3057\u3066\u3044\u305f\u3060\u3051\u308c\u3070\u7d42\u308f\u308b\u8a71\u306a\u306e\u3067\u3059\u304c\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u304a\u308f\u3044<\/h1>\n\n\n\n<p>\u4ed6\u4eba\u306b\u6a5f\u80fd\u3092\u63d0\u4f9b\u3059\u308b\u969b\u306f\u81ea\u5206\u3060\u3051\u6c17\u6301\u3061\u3088\u304f\u306a\u3089\u306a\u3044\u3088\u3046\u30a8\u30e9\u30fc\u30ed\u30b0\u6a5f\u80fd\u3092\u30ad\u30c1\u30f3\u3068\u5b9f\u88c5\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u304a\u308f\u3044<\/p>\n\n\n<div class='bootstrap-yop yop-poll-mc'>\n\t\t\t\t\t\t\t<div class=\"yop-poll-container\" data-id=\"368\" data-ajax=\"1\" data-tid=\"\" data-pid=\"20088\" data-show-results-only=\"false\"><\/div>\n\t\t\t\t\t\t<\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3042\u3089\u3059\u3058 VSCode\u306e\u62e1\u5f35\u6a5f\u80fd&#8221;Dev Container&#8221;\u3067.devcontiner.jso&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[11],"tags":[36,17],"class_list":["post-20088","post","type-post","status-publish","format-standard","hentry","category-11","tag-docker","tag-visual-studio-code"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.d0web.com\/blog\/wp-json\/wp\/v2\/posts\/20088","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.d0web.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.d0web.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.d0web.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.d0web.com\/blog\/wp-json\/wp\/v2\/comments?post=20088"}],"version-history":[{"count":9,"href":"https:\/\/www.d0web.com\/blog\/wp-json\/wp\/v2\/posts\/20088\/revisions"}],"predecessor-version":[{"id":20101,"href":"https:\/\/www.d0web.com\/blog\/wp-json\/wp\/v2\/posts\/20088\/revisions\/20101"}],"wp:attachment":[{"href":"https:\/\/www.d0web.com\/blog\/wp-json\/wp\/v2\/media?parent=20088"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.d0web.com\/blog\/wp-json\/wp\/v2\/categories?post=20088"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.d0web.com\/blog\/wp-json\/wp\/v2\/tags?post=20088"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}