{"id":13829,"date":"2025-07-03T10:00:00","date_gmt":"2025-07-03T01:00:00","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=13829"},"modified":"2025-07-04T15:17:45","modified_gmt":"2025-07-04T06:17:45","slug":"docker-for-windows%e3%81%ae%e3%80%8cwsl-integration%e3%80%8d%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%a8%e3%81%9d%e3%81%ae%e5%af%be%e5%87%a6%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/13829","title":{"rendered":"Docker for Windows\u306e\u300cWSL Integration\u300d\u30a8\u30e9\u30fc\u3068\u305d\u306e\u5bfe\u51e6\u6cd5"},"content":{"rendered":"\n<p>\u4eca\u56de\u306f\u3001Docker for Windows \u3092\u4f7f\u7528\u4e2d\u306b\u767a\u751f\u3057\u305f\u300cWSL Integration\u300d\u95a2\u9023\u306e\u30a8\u30e9\u30fc\u3068\u3001\u305d\u306e\u5bfe\u51e6\u65b9\u6cd5\u306b\u3064\u3044\u3066\u5171\u6709\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3>\u767a\u751f\u3057\u305f\u30a8\u30e9\u30fc<\/h3>\n\n\n\n<p>\u5148\u65e5\u3001Docker \u30b3\u30f3\u30c6\u30ca\u3092\u8d77\u52d5\u3057\u3088\u3046\u3068\u3057\u305f\u3068\u3053\u308d\u3001\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u3001\u518d\u8d77\u52d5\u3057\u3066\u3082\u89e3\u6d88\u3055\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>WSL integration with distro 'Ubuntu' unexpectedly stopped. Do you want to restart it?\nconfiguring docker in Ubuntu: docker cli config: failed to write file: exit status 2<\/code><\/pre>\n\n\n\n<p><br>\u524d\u65e5\u307e\u3067\u306f\u554f\u984c\u306a\u304f\u52d5\u4f5c\u3057\u3066\u3044\u305f\u305f\u3081\u3001WSL\uff08Windows Subsystem for Linux\uff09\u5074\u304c\u4e0d\u5b89\u5b9a\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u8003\u3048\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067 WSL \u3092\u4e00\u5ea6\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wsl --shutdown<\/code><\/pre>\n\n\n\n<p><br>\u518d\u3073 Docker Desktop \u3092\u8d77\u52d5\u3059\u308b\u3068\u3001\u4eca\u5ea6\u306f\u4ee5\u4e0b\u306e\u5225\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p><code>WSL integration with distro 'Ubuntu' unexpectedly stopped. Do you want to restart it?<br>retrieving homedir for Ubuntu distro: getting home folder for Ubuntu distro: running echo $HOME in Ubuntu: sending to distro: write |1: The pipe is being closed.<\/code><\/p>\n\n\n\n<p>\u518d\u8d77\u52d5\u3092\u8a66\u307f\u3066\u3082\u30b3\u30f3\u30c6\u30ca\u306e\u8d77\u52d5\u306b\u306f\u81f3\u3089\u305a\u3001Ubuntu \u5074\u306e WSL \u74b0\u5883\u304c\u58ca\u308c\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u8003\u3048\u3089\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h3>WSL\uff08Ubuntu\uff09\u306b\u76f4\u63a5\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u304b\u78ba\u8a8d<\/h3>\n\n\n\n<p>\u5ff5\u306e\u305f\u3081\u3001WSL \u4e0a\u306e Ubuntu \u306b\u76f4\u63a5\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u304b\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p><code>wsl -d Ubuntu<\/code><\/p>\n\n\n\n<p>\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001\u6b63\u5e38\u306b\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u307e\u3057\u305f\uff1a<\/p>\n\n\n\n<p><code>Welcome to Ubuntu 22.04.2 LTS (GNU\/Linux 4.4.0-19041-Microsoft x86_64)<br>\u2026<br>linux@LAPTOP:\/mnt\/c\/Users\/nishida$<\/code><\/p>\n\n\n\n<p>\u3053\u306e\u3053\u3068\u304b\u3089\u3001WSL \u81ea\u4f53\u306f\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u3066\u304a\u308a\u3001Docker Desktop \u5074\u306e\u9023\u643a\u306b\u554f\u984c\u304c\u3042\u308b\u3068\u5224\u65ad\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h3>\u4e00\u6642\u7684\u306a\u56de\u907f\u7b56\uff1aWSL Integration \u3092\u30aa\u30d5\u306b\u3059\u308b<\/h3>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u3001WSL \u3068\u306e\u9023\u643a\u3092\u4e00\u6642\u7684\u306b\u7121\u52b9\u5316\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\uff11. Docker Desktop \u3092\u958b\u304f<\/p>\n\n\n\n<p>\uff12. Settings &gt; Resources &gt; WSL Integration \u306b\u79fb\u52d5<\/p>\n\n\n\n<p>\uff13. \u300cEnable integration with my default WSL distro\u300d\u306e\u30c1\u30a7\u30c3\u30af\u3092\u5916\u3059<\/p>\n\n\n\n<p>\uff14. Docker Desktop \u3092\u518d\u8d77\u52d5<\/p>\n\n\n\n<p>\u3053\u306e\u72b6\u614b\u3067\u306f WSL \u7d4c\u7531\u3067\u306e\u9023\u643a\u306f\u3067\u304d\u307e\u305b\u3093\u304c\u3001Docker \u30b3\u30f3\u30c6\u30ca\u306e\u8d77\u52d5\u81ea\u4f53\u306f\u53ef\u80fd\u3067\u3001\u958b\u767a\u4f5c\u696d\u3082\u7d99\u7d9a\u3067\u304d\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u30fbWindows \u5074\uff08cmd\u3001PowerShell\u3001VSCode \u306a\u3069\uff09\u304b\u3089 docker CLI \u306e\u5229\u7528\u306f\u53ef\u80fd<\/p>\n\n\n\n<p>\u30fbVue.js \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30d3\u30eb\u30c9\u3082\u554f\u984c\u306a\u3057<\/p>\n\n\n\n<p>\u2192\u305f\u3060\u3057\u3001WSL\uff08Ubuntu\uff09\u5185\u3067\u306f docker \u30b3\u30de\u30f3\u30c9\u304c\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h3>\u6052\u4e45\u7684\u306a\u5bfe\u51e6\uff1aWSL \u30d0\u30fc\u30b8\u30e7\u30f3\u3092 2 \u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9<\/h3>\n\n\n\n<p>\u3088\u308a\u6839\u672c\u7684\u306a\u89e3\u6c7a\u7b56\u3068\u3057\u3066\u3001Ubuntu \u3092 WSL 1 \u2192 WSL 2 \u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u306f\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e0d\u8981\u3067\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u53ef\u80fd\u3067\u3059\uff1a<\/p>\n\n\n\n<p>wsl &#8211;set-version Ubuntu 2<\/p>\n\n\n\n<p>\u5909\u63db\u5f8c\u306b\u518d\u3073 Docker Desktop \u306e\u8a2d\u5b9a\u753b\u9762\u3078\u884c\u304d\u3001<\/p>\n\n\n\n<p>Settings &gt; Resources &gt; WSL Integration \u306b\u3066<br>\u300cEnable integration with my default WSL distro\u300d\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u76f4\u3057\u3066\u4fdd\u5b58\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u5f8c\u306f\u3001\u30a8\u30e9\u30fc\u3082\u8868\u793a\u3055\u308c\u305a\u3001WSL \u3068\u306e\u9023\u643a\u3082\u6b63\u5e38\u306b\u5fa9\u65e7\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u540c\u3058\u3088\u3046\u306a\u30a8\u30e9\u30fc\u306b\u906d\u9047\u3057\u305f\u65b9\u306e\u53c2\u8003\u306b\u306a\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<p><br>\u53c2\u8003\u30ea\u30f3\u30af\uff1a<br>WSL 2 \u3078\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u65b9\u6cd5\uff08Microsoft\uff09<br><a href=\"https:\/\/learn.microsoft.com\/ja-jp\/windows\/wsl\/install\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/learn.microsoft.com\/ja-jp\/windows\/wsl\/install<\/a><\/p>\n\n\n\n<p><br>\u6728\u66dc\u65e5\u62c5\u5f53\uff1anishida<\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/13829\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/13829\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"Docker for Windows\u306e\u300cWSL Integration\u300d\u30a8\u30e9\u30fc\u3068\u305d\u306e\u5bfe\u51e6\u6cd5\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/13829\" data-text=\"Docker for Windows\u306e\u300cWSL Integration\u300d\u30a8\u30e9\u30fc\u3068\u305d\u306e\u5bfe\u51e6\u6cd5\" data-via=\"GIGASJAPAN_APPS\" data-lang=\"ja\">Tweet<\/a><\/div>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/13829\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_facebook_send\"><div id=\"fb-root\"><\/div><fb:send href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/13829\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u306f\u3001Docker for Windows \u3092\u4f7f\u7528\u4e2d\u306b\u767a\u751f\u3057\u305f\u300cWSL Integration\u300d\u95a2\u9023\u306e\u30a8\u30e9\u30fc\u3068\u3001\u305d\u306e\u5bfe\u51e6\u65b9\u6cd5\u306b\u3064\u3044\u3066\u5171\u6709\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 \u767a\u751f\u3057\u305f\u30a8\u30e9\u30fc \u5148\u65e5\u3001Docker \u30b3\u30f3\u30c6\u30ca\u3092\u8d77\u52d5\u3057\u3088\u3046\u3068\u3057\u305f [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[100],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/13829"}],"collection":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/comments?post=13829"}],"version-history":[{"count":10,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/13829\/revisions"}],"predecessor-version":[{"id":13844,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/13829\/revisions\/13844"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=13829"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=13829"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=13829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}