{"id":1899,"date":"2020-05-24T02:45:54","date_gmt":"2020-05-23T17:45:54","guid":{"rendered":"https:\/\/blog.minatoproject.com\/?p=1899"},"modified":"2020-05-24T02:45:58","modified_gmt":"2020-05-23T17:45:58","slug":"docker-desktop-for-wsl2%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.minatoproject.com\/?p=1899","title":{"rendered":"Docker Desktop for WSL2\u3092\u4f7f\u3063\u3066\u307f\u308b"},"content":{"rendered":"<div class=\"veu_autoEyeCatchBox\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/05\/20200524_eyecatch-1024x576.png\" class=\"attachment-large size-large wp-post-image\" alt=\"\" srcset=\"https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/05\/20200524_eyecatch-1024x576.png 1024w, https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/05\/20200524_eyecatch-300x169.png 300w, https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/05\/20200524_eyecatch-768x432.png 768w, https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/05\/20200524_eyecatch-320x180.png 320w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/div>\n<p>Build 2020\u306b\u3066Windows Subsystem for Linux 2\uff08WSL2\uff09\u306e\u6b63\u5f0f\u30ea\u30ea\u30fc\u30b9\u304c\u767a\u8868\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u8a73\u7d30\u3092\u30ad\u30e3\u30c3\u30c1\u30a2\u30c3\u30d7\u3067\u304d\u3066\u3044\u305f\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u5148\u65e5Windows Insider Program\u306b\u5165\u3063\u305f\u526f\u7523\u7269\u3068\u3057\u3066Windows 10\u306e\u30d0\u30fc\u30b8\u30e7\u30f32004\u304c\u5165\u624b\u3067\u304d\u305f\u306e\u3067\u8a2d\u5b9a\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">WSL\u3068\u306f\uff1f<\/h2>\n\n\n\n<p>Linux\u3092Windows\u4e0a\u3067\u52d5\u304b\u3059\u305f\u3081\u306e\u4e92\u63db\u30ec\u30a4\u30e4\u30fc\u3067\u3059\u3002<\/p>\n\n\n\n<p>Windows\u74b0\u5883\u4e0a\u3067\u307b\u3068\u3093\u3069\u5b8c\u5168\u306aLinux\u304c\u52d5\u304f\u3053\u3068\u306b\u3088\u308a\u3001\u5404\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u7528\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30b7\u30b9\u30c6\u30e0\u304c\u305d\u306e\u307e\u307e\u5229\u7528\u3067\u304d\u308b\u3068\u3044\u3046\u5229\u70b9\u304c\u3042\u308a\u307e\u3059\u3002\u30a8\u30f3\u30b8\u30cb\u30a2\u4ee5\u5916\u306e\u65b9\u306b\u306f\u300c\u4f55\u306e\u3053\u3063\u3061\u3083\u300d\u3063\u3066\u611f\u3058\u3060\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u3053\u308c\u306f\u304b\u306a\u308a\u9769\u65b0\u7684\u3067\u3057\u305f\u3002\u4f55\u305bWindows\u3067 <code>apt-get<\/code> \u304c\u53e9\u3051\u308b\u306e\u3067\u3059\u304b\u3089\u3002<\/p>\n\n\n\n<p>\u300cLinux\u3092\u52d5\u304b\u3059\u3060\u3051\u306a\u3089Hyper-V\u3067\u3044\u3044\u3058\u3083\u306a\u3044\u304b\u300d\u3068\u601d\u308f\u308c\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u3053\u306eWSL\u306fWindows10 Pro\u3067\u3042\u308c\u3070\u7279\u306b\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u306e\u88fd\u54c1\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u306a\u304f\u4f7f\u3048\u308b\u3046\u3048\u3001\u8d77\u52d5\u3082\u6570\u79d2\u3068\u30cf\u30a4\u30a8\u30ca\u7684\u306b\u901f\u304f\u3001\u30d9\u30fc\u30b9\u3067\u5fc5\u8981\u3068\u3059\u308b\u30e1\u30e2\u30ea\u3082\u50c5\u304b\u3067\u3042\u308b\u306a\u3069\u591a\u304f\u306e\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3061\u306a\u307f\u306b\u2193\u304cWSL\u306eUbuntu\u4e0a\u3067 <code>apt-get<\/code> \u3092\u53e9\u3044\u3066\u307f\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/05\/20200524_001.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1042\" height=\"630\" src=\"http:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/05\/20200524_001.png\" alt=\"\" class=\"wp-image-1901\" srcset=\"https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/05\/20200524_001.png 1042w, https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/05\/20200524_001-300x181.png 300w, https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/05\/20200524_001-768x464.png 768w, https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/05\/20200524_001-1024x619.png 1024w\" sizes=\"auto, (max-width: 1042px) 100vw, 1042px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">WSL\u3068WSL2\u306e\u9055\u3044<\/h2>\n\n\n\n<p>\u5916\u898b\u3048\u306b\u306f\u3055\u307b\u3069\u5909\u308f\u3063\u3066\u3044\u306a\u3044\u3088\u3046\u306b\u898b\u3048\u307e\u3059\u304c\u3001\u4e2d\u8eab\u306f\u82e5\u5e72\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/05\/20200524_002.png\"><img loading=\"lazy\" decoding=\"async\" width=\"2667\" height=\"1500\" src=\"http:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/05\/20200524_002.png\" alt=\"\" class=\"wp-image-1902\" srcset=\"https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/05\/20200524_002.png 2667w, https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/05\/20200524_002-300x169.png 300w, https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/05\/20200524_002-768x432.png 768w, https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/05\/20200524_002-1024x576.png 1024w, https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/05\/20200524_002-320x180.png 320w\" sizes=\"auto, (max-width: 2667px) 100vw, 2667px\" \/><\/a><\/figure>\n\n\n\n<p>WSL\u3067\u306fLXCore\u3068\u3044\u3046\u30b5\u30d6\u30b7\u30b9\u30c6\u30e0\u304cLinux\u306e\u547d\u4ee4\u3092Windows\u306e\u547d\u4ee4\u306b\u5909\u63db\u3057\u3066\u304a\u308a\u3001\u53b3\u5bc6\u306a\u610f\u5473\u3067\u306eLinux\u30ab\u30fc\u30cd\u30eb\u306f\u52d5\u3044\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u305d\u308c\u306b\u5bfe\u3057WSL2\u306f\u8efd\u91cf\u4eee\u60f3\u30de\u30b7\u30f3\u4e0a\u3067Linux\u30ab\u30fc\u30cd\u30eb\u30d0\u30a4\u30ca\u30ea\u3092\u52d5\u4f5c\u3055\u305b\u307e\u3059\u3002Windows\u3068\u306f\u305d\u306e\u4eee\u60f3\u30de\u30b7\u30f3\u3092\u7d4c\u7531\u3057\u3066\u3084\u308a\u53d6\u308a\u3057\u307e\u3059\u3002\u305d\u306e\u305f\u3081WSL2\u3067\u306f\u30b3\u30f3\u30c6\u30ca\u3082\u305d\u306e\u307e\u307e\u8d77\u52d5\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u306e\u30e1\u30ea\u30c3\u30c8\u3092\u4eab\u53d7\u3067\u304d\u308b\u306e\u304cDocker\u3067\u3059\u3002WSL\u4ee5\u524d\u3001Windows\u3067Docker\u3092\u52d5\u304b\u3059\u306b\u306fHyper-V\u4e0a\u306e\u5c0f\u3055\u3044Linux\u30de\u30b7\u30f3\u3092\u54ac\u307e\u305b\u308b\u3057\u304b\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002WSL2\u3067\u306f\u3053\u308c\u304c\u4e0d\u8981\u306b\u306a\u308a\u307e\u3059\u3002\u3064\u307e\u308a\u7406\u8ad6\u4e0aWindows 10 Home\u3067\u3082\u52d5\u304b\u305b\u308b\u3088\u3046\u306b\u306a\u308b\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">WSL2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h2>\n\n\n\n<p>\u305d\u308c\u3067\u306f\u65e9\u901fWSL2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u65e2\u306bDocker\u3092\u5e38\u99d0\u3055\u305b\u3066\u3044\u308b\u5834\u5408\u306f\u3061\u3087\u304f\u3061\u3087\u304f\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u6016\u6c17\u3065\u304f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u8010\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u3068\u306f\u3044\u3048\u3001\u57fa\u672c\u7684\u306b\u306f\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u901a\u308a\u306b\u30b3\u30de\u30f3\u30c9\u3092\u53e9\u3044\u3066\u3044\u3051\u3070\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n<div class=\"linkcard\"><div class=\"lkc-external-wrap\"><a class=\"lkc-link no_icon\" href=\"https:\/\/docs.microsoft.com\/ja-jp\/windows\/wsl\/install-win10\" target=\"_blank\" rel=\"external noopener\"><div class=\"lkc-card\"><div class=\"lkc-info\"><div class=\"lkc-favicon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.google.com\/s2\/favicons?domain=docs.microsoft.com\" alt=\"\" width=\"16\" height=\"16\" \/><\/div><div class=\"lkc-domain\">docs.microsoft.com<\/div><div class=\"lkc-share\"> <div class=\"lkc-sns-hb\">164 Users<\/div> <div class=\"lkc-sns-po\">1846 Pockets<\/div><\/div><\/div><div class=\"lkc-content\"><figure class=\"lkc-thumbnail\"><img decoding=\"async\" class=\"lkc-thumbnail-img\" src=\"\/\/blog.minatoproject.com\/wp-content\/uploads\/pz-linkcard\/cache\/34be76da44fadf0c7857d276d95683641dba5c46589887549f7534fca6e24b22.jpeg\" width=\"100px\" height=\"108px\" alt=\"\" \/><\/figure><div class=\"lkc-title\">Windows Subsystem for Linux (WSL) \u3092 Windows 10 \u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/div><div class=\"lkc-url\" title=\"https:\/\/docs.microsoft.com\/ja-jp\/windows\/wsl\/install-win10\">https:\/\/docs.microsoft.com\/ja-jp\/windows\/wsl\/install-win10<\/div><div class=\"lkc-excerpt\">Windows 10 \u3067\u306e Windows Subsystem for Linux \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806\u3002<\/div><\/div><div class=\"clear\"><\/div><\/div><\/a><\/div><\/div>\n\n\n<p>\u79c1\u306e\u74b0\u5883\u306e\u5834\u5408\u3001OS\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30922004\u306b\u3057\u305f\u77ac\u9593\u306bDocker\u304c\u300cWSL2\u30d9\u30fc\u30b9\u306e\u30a8\u30f3\u30b8\u30f3\u3092\u4f7f\u3048\u308b\u3088\uff01\u300d\u3068\u6559\u3048\u3066\u304f\u308c\u305f\u306e\u3067\u5206\u304b\u308a\u3084\u3059\u304b\u3063\u305f\u3067\u3059\u3002\u305f\u3060\u3057\u305d\u308c\u306e\u8a00\u3046\u901a\u308a\u306b\u9032\u3081\u3066\u3044\u305f\u3089\u30a8\u30e9\u30fc\u3068\u306a\u308a\u307e\u3057\u305f\u304c(\u7b11)<\/p>\n\n\n\n<p>\u3068\u3044\u3046\u6d41\u308c\u304c\u3042\u3063\u3066\u8abf\u3079\u8fbf\u308a\u7740\u3044\u305f\u30b5\u30a4\u30c8\u304c\u4e0a\u8a18\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p><span data-color=\"#fcb900\" style=\"background: linear-gradient(transparent 60%,rgba(252, 185, 0, 0.7) 0);\" class=\"vk_highlighter\">\u7ba1\u7406\u8005\u6a29\u9650<\/span>\u306e<span data-color=\"#fcb900\" style=\"background: linear-gradient(transparent 60%,rgba(252, 185, 0, 0.7) 0);\" class=\"vk_highlighter\">PowerShell<\/span>\u3067\u6b21\u306e\u901a\u308a\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305aWSL\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u6709\u52b9\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism off-numbers lang-plane\"><code>$ dism.exe \/online \/enable-feature \/featurename:Microsoft-Windows-Subsystem-Linux \/all \/norestart<\/code><\/pre><\/div>\n\n\n\n<p>WSL2\u306b\u66f4\u65b0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism off-numbers lang-plane\"><code>$ dism.exe \/online \/enable-feature \/featurename:VirtualMachinePlatform \/all \/norestart<\/code><\/pre><\/div>\n\n\n\n<p>\u30de\u30b7\u30f3\u3092\u518d\u8d77\u52d5\u3057\u3066\u304b\u3089\u3001WSL2\u3092\u65e2\u5b9a\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism off-numbers lang-plane\"><code>$ wsl --set-default-version 2<\/code><\/pre><\/div>\n\n\n\n<p>Docker\u306e\u8a2d\u5b9a\u3092\u958b\u3044\u3066\u3001\u300cUse the WSL 2 based engine\u300d\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u308c\u3070OK\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/05\/20200524_003.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1056\" height=\"699\" src=\"http:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/05\/20200524_003.png\" alt=\"\" class=\"wp-image-1906\" srcset=\"https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/05\/20200524_003.png 1056w, https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/05\/20200524_003-300x199.png 300w, https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/05\/20200524_003-768x508.png 768w, https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/05\/20200524_003-1024x678.png 1024w\" sizes=\"auto, (max-width: 1056px) 100vw, 1056px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u3068\u308a\u3042\u3048\u305adocker ps<\/h2>\n\n\n\n<p>\u4f55\u306b\u3082\u9762\u767d\u304f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u4e00\u5fdc\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/05\/20200524_004.gif\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"994\" height=\"678\" src=\"http:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/05\/20200524_004.gif\" alt=\"\" class=\"wp-image-1907\"\/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Build 2020\u306b\u3066Windows Subsystem for Linux 2\uff08WSL2\uff09\u306e\u6b63\u5f0f\u30ea\u30ea\u30fc\u30b9\u304c\u767a\u8868\u3055\u308c\u307e\u3057\u305f\u3002 \u8a73\u7d30\u3092\u30ad\u30e3\u30c3\u30c1\u30a2\u30c3\u30d7\u3067\u304d\u3066\u3044\u305f\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u5148\u65e5Windows Insider Pr [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1900,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"vkexunit_cta_each_option":"","footnotes":""},"categories":[17],"tags":[],"class_list":["post-1899","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-docker"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.minatoproject.com\/index.php?rest_route=\/wp\/v2\/posts\/1899","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.minatoproject.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.minatoproject.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.minatoproject.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.minatoproject.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1899"}],"version-history":[{"count":4,"href":"https:\/\/blog.minatoproject.com\/index.php?rest_route=\/wp\/v2\/posts\/1899\/revisions"}],"predecessor-version":[{"id":1908,"href":"https:\/\/blog.minatoproject.com\/index.php?rest_route=\/wp\/v2\/posts\/1899\/revisions\/1908"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.minatoproject.com\/index.php?rest_route=\/wp\/v2\/media\/1900"}],"wp:attachment":[{"href":"https:\/\/blog.minatoproject.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.minatoproject.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.minatoproject.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}