{"id":138,"date":"2023-05-18T21:37:23","date_gmt":"2023-05-18T21:37:23","guid":{"rendered":"https:\/\/wp-yoda.com\/en\/?p=138"},"modified":"2023-08-21T12:01:50","modified_gmt":"2023-08-21T12:01:50","slug":"docker-with-wsl2-based-on-windows","status":"publish","type":"post","link":"https:\/\/wp-yoda.com\/en\/environment\/docker-with-wsl2-based-on-windows\/","title":{"rendered":"Docker with WSL2 based on Windows"},"content":{"rendered":"  \r\n    \r\n<div id=\"wpj-jtoc\" class=\"wpj-jtoc wpj-jtoc--main  --jtoc-the-content --jtoc-theme-basic-light --jtoc-title-align-left --jtoc-toggle-icon --jtoc-toggle-position-right --jtoc-toggle-1 --jtoc-has-numeration --jtoc-numeration-legacy --jtoc-has-custom-styles --jtoc-is-unfolded --jtoc-align-left\" >\r\n  <!-- TOC -->\r\n        <div class=\"wpj-jtoc--toc wpj-jtoc--toc-inline \" >\r\n              <div class=\"wpj-jtoc--header\">\r\n        <div class=\"wpj-jtoc--header-main\">\r\n                    <div class=\"wpj-jtoc--title\">\r\n                        <span class=\"wpj-jtoc--title-label\">Table of contents<\/span>\r\n          <\/div>\r\n                                <div class=\"wpj-jtoc--toggle-wrap\">\r\n                                                          <div class=\"wpj-jtoc--toggle-box\">\r\n                  <div class=\"wpj-jtoc--toggle\"><\/div>\r\n                <\/div>\r\n                          <\/div>\r\n                  <\/div>\r\n      <\/div>\r\n            <div class=\"wpj-jtoc--body\">\r\n            <nav class=\"wpj-jtoc--nav\">\r\n        <ol class=\"wpj-jtoc--items\"><li class=\"wpj-jtoc--item --jtoc-h2\">\r\n        <div class=\"wpj-jtoc--item-content --jtoc-h2\" data-depth=\"2\">\r\n                                                <a href=\"#docker-and-wsl2\"  title=\"Docker and WSL2\" data-numeration=\"1\">Docker and WSL2<\/a>\r\n                    <\/div><\/li><li class=\"wpj-jtoc--item --jtoc-h2\">\r\n        <div class=\"wpj-jtoc--item-content --jtoc-h2\" data-depth=\"2\">\r\n                                                <a href=\"#install-project-into-wsl2-on-windows\"  title=\"Installing WSL2, Docker\" data-numeration=\"2\">Installing WSL2, Docker<\/a>\r\n                    <\/div><\/li><li class=\"wpj-jtoc--item --jtoc-h2\">\r\n        <div class=\"wpj-jtoc--item-content --jtoc-h2\" data-depth=\"2\">\r\n                                                <a href=\"#performance\"  title=\"Performance\" data-numeration=\"3\">Performance<\/a>\r\n                    <\/div><\/li><li class=\"wpj-jtoc--item --jtoc-h2\">\r\n        <div class=\"wpj-jtoc--item-content --jtoc-h2\" data-depth=\"2\">\r\n                                                <a href=\"#accessing-to-the-wsl2-filesystem-via-phpstorm-and-the-file-manager\"  title=\"Accessing to the WSL2 filesystem via PHPStorm and the file manager\" data-numeration=\"4\">Accessing to the WSL2 filesystem via PHPStorm and the file manager<\/a>\r\n                    <\/div><\/li><li class=\"wpj-jtoc--item --jtoc-h2\">\r\n        <div class=\"wpj-jtoc--item-content --jtoc-h2\" data-depth=\"2\">\r\n                                                <a href=\"#to-sum-up\"  title=\"To sum up\" data-numeration=\"5\">To sum up<\/a>\r\n                    <\/div><\/li><\/ol>      <\/nav>\r\n          <\/div>\r\n      <\/div>\r\n    <\/div>\r\n\n\n\n<p><strong>WSL<\/strong> (Windows Subsystem for Linux) &#8211; is a Windows subsystem that can allow running Linux applications on computers without installing a separate virtual machine or different operating system.<\/p>\n\n\n\n<p><strong>WSL2<\/strong> works on the basis of the hypervisor. This in turn allows us to have Linux kernel inside a virtual machine on a desktop under the management of <strong>Windows<\/strong>. Using the hypervisor significantly reduces overhead costs, which has improved the performance and compatibility of Linux applications.<br><br>The difference <strong>WSL2<\/strong> vs <strong>WSL1<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Function<\/th><th>WSL&nbsp;1<\/th><th>WSL&nbsp;2<\/th><\/tr><\/thead><tbody><tr><td>Integration between Windows and Linux<\/td><td>\u2705<\/td><td>\u2705<\/td><\/tr><tr><td>Fast boot times<\/td><td>\u2705<\/td><td>\u2705<\/td><\/tr><tr><td>Small resource footprint compared to traditional Virtual Machines<\/td><td>\u2705<\/td><td>\u2705<\/td><\/tr><tr><td>Runs with current versions of VMware and VirtualBox<\/td><td>\u2705<\/td><td>\u2705<\/td><\/tr><tr><td>Managed VM<\/td><td>\u274c<\/td><td>\u2705<\/td><\/tr><tr><td>Full Linux Kernel<\/td><td>\u274c<\/td><td>\u2705<\/td><\/tr><tr><td>Full system call compatibility<\/td><td>\u274c<\/td><td>\u2705<\/td><\/tr><tr><td>Performance across OS file systems<\/td><td>\u2705<\/td><td>\u274c<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">For more information, you can read <a href=\"https:\/\/learn.microsoft.com\/en-gb\/windows\/wsl\/compare-versions\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">here <\/a><\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Docker and WSL2<\/h2>\n\n\n\n<p><strong>WSL<\/strong> provides us with opportunities of using the <strong>Docker Desktop<\/strong> for <strong>Windows<\/strong>. To be able to use it, we don&#8217;t need to have a virtual machine.<br>With the arrival of <strong>WSL2<\/strong>, a lot of bugs have been fixed for <strong>Docker<\/strong> and its networks, and the performance of kernel and Docker containers.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote has-highlight-light-background-color has-background is-layout-flow wp-block-quote-is-layout-flow\">\n<p><\/p>\n<cite><strong>WSL2<\/strong> is available only for thouse who have Windows 10 and higher.<\/cite><\/blockquote>\n\n\n\n<p>Nowadays, there aren&#8217;t any issues using WSL2 with Docker. It works like clockwork <strong>WSL2<\/strong> with <strong>Docker.<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"install-project-into-wsl2-on-windows\">Installing WSL2, Docker<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To begin with, downloading and installing Docker Desktop for Windows<br><a href=\"https:\/\/docs.docker.com\/desktop\/windows\/install\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">https:\/\/docs.docker.com\/desktop\/windows\/install\/<\/a><\/li>\n\n\n\n<li>Run the Docker Desktop.<\/li>\n\n\n\n<li>Then, download Ubuntu 20 or newer version from Microsoft Store<br><a href=\"https:\/\/www.microsoft.com\/store\/productId\/9N6SVWS3RX71\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">https:\/\/www.microsoft.com\/store\/productId\/9N6SVWS3RX71<\/a><\/li>\n\n\n\n<li>Run the Ubuntu terminal and fill Unix name &amp; password.<\/li>\n\n\n\n<li>After that, run PowerShell Terminal and execute the following commands:<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n# check current WSL version\nwsl -l -v\n\n# if we have WSL1 (you will see VERSION 1), we need to change WSL1 to WSL2.\nwsl --set-default-version 2\n\n# If you already have a &amp;lt;Ubuntu-20.04&gt;, you should to run:\nwsl --set-version Ubuntu-20.04 2\n\n# now if you check your WSL version you will see &quot;VERSION 2&quot;\nwsl -l -v\n\n# Close power shell\n\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/wp-yoda.com\/wp-content\/uploads\/2023\/04\/wsl-version_fotor-1024x543.png\" alt=\"\" class=\"wp-image-274\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>At the terminal, let&#8217;s run the next command to update the list of available packages and install Docker, ZIP, Git, Make, and Tree packages:<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n#Update packages sources\nsudo apt update\n\n#Install packages\nsudo apt install zip unzip git tree docker make\n<\/pre><\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>Now, inside the <strong>WSL2<\/strong> we have the installed <strong>Docker<\/strong>\n<ul class=\"wp-block-list\">\n<li>You need to check that the Docker works correctly. Run one of two command below:<br><code>docker --version<\/code>  or <code>sudo docker --version<\/code><\/li>\n\n\n\n<li>You should see approximately console output:<br><code>Docker version 24.0.2, build cb74dfc<\/code><br><br><mark style=\"background-color:#ffb703\" class=\"has-inline-color\"><strong>!<\/strong> If commands above output the message &#8220;docker command not found&#8221;, check that Docker Desktop is turned on and in its settings is checked a setting as on-screen below:<\/mark><br><a href=\"https:\/\/wp-yoda.com\/wp-content\/uploads\/2023\/06\/image-49.png\"><img decoding=\"async\" class=\"wp-image-980\" style=\"width: 850px;\" src=\"https:\/\/wp-yoda.com\/wp-content\/uploads\/2023\/06\/image-49.png\" alt=\"Docker \u0432 WSL2\"><\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Now, inside the <strong>WSL2<\/strong> we have the installed <strong>Docker<\/strong>, it remains to install Docker Compose<br><a href=\"https:\/\/docs.docker.com\/compose\/install\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">https:\/\/docs.docker.com\/compose\/install\/<\/a> .<br>In our case, I highly recommend you consider the next installing options:<em> <code>Scenario two<\/code> or <code>Scenario three<\/code> .<\/em><\/li>\n\n\n\n<li>Then we have to add the user&#8217;s docker into the Linux subsystem:<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo groupadd docker\nsudo usermod -aG docker $USER\n<\/pre><\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>Close the terminal and open it again, then run a control check by following the instruction below:<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ndocker run hello-world\n# You should see `Hello from Docker!` in success result.    \n\n# try to use one of them\ndocker-compose --version\ndocker compose --version\n\n# You must see version higher 1.28\n<\/pre><\/div>\n\n\n<p>Viola, now our local environment based on <strong>WSL2<\/strong> + <strong>Docker<\/strong> has been configured and is ready to work!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Performance<\/h2>\n\n\n\n<p>To get maximum performance using <strong>WSL2<\/strong>, it is recommended to store project files inside the<strong> WSL<\/strong> filesystem.<\/p>\n\n\n\n<p>In case you put a working project in the Windows filesystem &#8211; you will feel a slump in performance.<br>This will be especially visible on large projects with a bloated <code>vendor<\/code> or <code>node_modules<\/code><em> <\/em>directories.<br>This happens because <strong>Docker<\/strong> will access these files via a virtual network disc, that is connected to <strong>WSL<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Accessing to the WSL2 filesystem via PHPStorm and the file manager<\/h2>\n\n\n\n<p>Once you have placed the project files in the <strong>WSL<\/strong>, you can connect <strong>PHPStorm<\/strong> to the <strong>WSL<\/strong> project, at the path:  <code>\\\\wsl$\\Ubuntu\\home<\/code>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/wp-yoda.com\/wp-content\/uploads\/2023\/04\/screenshot_3.png\" alt=\"Docker with WSL2 based on Windows\" class=\"wp-image-302\"\/><\/figure>\n\n\n\n<p>As well you can get access to <strong>WSL<\/strong> by using the file manager of <strong>Windows<\/strong> at the paths <code>\\\\wsl$\\Ubuntu\\home<\/code> or <code>\\\\wsl.localhost\\Ubuntu\\home<\/code>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/wp-yoda.com\/wp-content\/uploads\/2023\/04\/windows-window.png\" alt=\"\" class=\"wp-image-304\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">To sum up<\/h2>\n\n\n\n<p>Now you can safely use <strong>WSL<\/strong> on <strong>Windows<\/strong> to bring up your projects in <strong>Docker<\/strong> containers. By storing your project files inside <strong>WSL2<\/strong>, you will no longer have to worry about performance issues.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>WSL (Windows Subsystem for Linux) &#8211; is a Windows subsystem that can allow running Linux applications on computers without installing [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":140,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[11,12,13,14],"class_list":["post-138","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-environment","tag-docker","tag-windows","tag-wsl","tag-wsl2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Docker with WSL2 based on Windows - WP Yoda<\/title>\n<meta name=\"description\" content=\"WSL (Windows Subsystem for Linux) - is a Windows subsystem that can allow running Linux applications on computers without installing a separate virtual machine or different operating system.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wp-yoda.com\/en\/environment\/docker-with-wsl2-based-on-windows\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Docker with WSL2 based on Windows - WP Yoda\" \/>\n<meta property=\"og:description\" content=\"WSL (Windows Subsystem for Linux) - is a Windows subsystem that can allow running Linux applications on computers without installing a separate virtual machine or different operating system.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wp-yoda.com\/en\/environment\/docker-with-wsl2-based-on-windows\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Yoda\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-18T21:37:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-21T12:01:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wp-yoda.com\/wp-content\/uploads\/2023\/04\/andrew_222_docker__wsl2__windows_dd3830b4-20da-4c02-80a3-a11c841a5663.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1728\" \/>\n\t<meta property=\"og:image:height\" content=\"864\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"\u0410\u043d\u0434\u0440\u0435\u0439 \u041f\u0438\u0441\u0430\u0440\u0435\u0432\u0441\u043a\u0438\u0439\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u0410\u043d\u0434\u0440\u0435\u0439 \u041f\u0438\u0441\u0430\u0440\u0435\u0432\u0441\u043a\u0438\u0439\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/wp-yoda.com\\\/en\\\/environment\\\/docker-with-wsl2-based-on-windows\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wp-yoda.com\\\/en\\\/environment\\\/docker-with-wsl2-based-on-windows\\\/\"},\"author\":{\"name\":\"\u0410\u043d\u0434\u0440\u0435\u0439 \u041f\u0438\u0441\u0430\u0440\u0435\u0432\u0441\u043a\u0438\u0439\",\"@id\":\"https:\\\/\\\/wp-yoda.com\\\/en\\\/#\\\/schema\\\/person\\\/195c797aee113d174e07e4887a9fe464\"},\"headline\":\"Docker with WSL2 based on Windows\",\"datePublished\":\"2023-05-18T21:37:23+00:00\",\"dateModified\":\"2023-08-21T12:01:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/wp-yoda.com\\\/en\\\/environment\\\/docker-with-wsl2-based-on-windows\\\/\"},\"wordCount\":600,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/wp-yoda.com\\\/en\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/wp-yoda.com\\\/en\\\/environment\\\/docker-with-wsl2-based-on-windows\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wp-yoda.com\\\/wp-content\\\/uploads\\\/2023\\\/04\\\/andrew_222_docker__wsl2__windows_dd3830b4-20da-4c02-80a3-a11c841a5663.png\",\"keywords\":[\"docker\",\"windows\",\"wsl\",\"wsl2\"],\"articleSection\":[\"Environment\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/wp-yoda.com\\\/en\\\/environment\\\/docker-with-wsl2-based-on-windows\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/wp-yoda.com\\\/en\\\/environment\\\/docker-with-wsl2-based-on-windows\\\/\",\"url\":\"https:\\\/\\\/wp-yoda.com\\\/en\\\/environment\\\/docker-with-wsl2-based-on-windows\\\/\",\"name\":\"Docker with WSL2 based on Windows - WP Yoda\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wp-yoda.com\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/wp-yoda.com\\\/en\\\/environment\\\/docker-with-wsl2-based-on-windows\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/wp-yoda.com\\\/en\\\/environment\\\/docker-with-wsl2-based-on-windows\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wp-yoda.com\\\/wp-content\\\/uploads\\\/2023\\\/04\\\/andrew_222_docker__wsl2__windows_dd3830b4-20da-4c02-80a3-a11c841a5663.png\",\"datePublished\":\"2023-05-18T21:37:23+00:00\",\"dateModified\":\"2023-08-21T12:01:50+00:00\",\"description\":\"WSL (Windows Subsystem for Linux) - is a Windows subsystem that can allow running Linux applications on computers without installing a separate virtual machine or different operating system.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/wp-yoda.com\\\/en\\\/environment\\\/docker-with-wsl2-based-on-windows\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/wp-yoda.com\\\/en\\\/environment\\\/docker-with-wsl2-based-on-windows\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wp-yoda.com\\\/en\\\/environment\\\/docker-with-wsl2-based-on-windows\\\/#primaryimage\",\"url\":\"https:\\\/\\\/wp-yoda.com\\\/wp-content\\\/uploads\\\/2023\\\/04\\\/andrew_222_docker__wsl2__windows_dd3830b4-20da-4c02-80a3-a11c841a5663.png\",\"contentUrl\":\"https:\\\/\\\/wp-yoda.com\\\/wp-content\\\/uploads\\\/2023\\\/04\\\/andrew_222_docker__wsl2__windows_dd3830b4-20da-4c02-80a3-a11c841a5663.png\",\"width\":1728,\"height\":864,\"caption\":\"Docker with WSL2 based on Windows\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/wp-yoda.com\\\/en\\\/environment\\\/docker-with-wsl2-based-on-windows\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/wp-yoda.com\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docker with WSL2 based on Windows\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/wp-yoda.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/wp-yoda.com\\\/en\\\/\",\"name\":\"WP Yoda\",\"description\":\"Notes about PHP, WordPress and IT\",\"publisher\":{\"@id\":\"https:\\\/\\\/wp-yoda.com\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/wp-yoda.com\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/wp-yoda.com\\\/en\\\/#organization\",\"name\":\"WP Yoda\",\"url\":\"https:\\\/\\\/wp-yoda.com\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wp-yoda.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/wp-yoda.com\\\/en\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2023\\\/05\\\/Andrew_222_Master_Yoda__WordPress_plain_background_763a84a4-5042-4fac-9bdb-4562c05563e7.png\",\"contentUrl\":\"https:\\\/\\\/wp-yoda.com\\\/en\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2023\\\/05\\\/Andrew_222_Master_Yoda__WordPress_plain_background_763a84a4-5042-4fac-9bdb-4562c05563e7.png\",\"width\":1024,\"height\":1024,\"caption\":\"WP Yoda\"},\"image\":{\"@id\":\"https:\\\/\\\/wp-yoda.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/wp-yoda.com\\\/en\\\/#\\\/schema\\\/person\\\/195c797aee113d174e07e4887a9fe464\",\"name\":\"\u0410\u043d\u0434\u0440\u0435\u0439 \u041f\u0438\u0441\u0430\u0440\u0435\u0432\u0441\u043a\u0438\u0439\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d3f11053e005f02e0dc3049c010b45034646963c7af8edac8076c3767022d750?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d3f11053e005f02e0dc3049c010b45034646963c7af8edac8076c3767022d750?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d3f11053e005f02e0dc3049c010b45034646963c7af8edac8076c3767022d750?s=96&r=g\",\"caption\":\"\u0410\u043d\u0434\u0440\u0435\u0439 \u041f\u0438\u0441\u0430\u0440\u0435\u0432\u0441\u043a\u0438\u0439\"},\"sameAs\":[\"https:\\\/\\\/wp-yoda.com\"],\"url\":\"https:\\\/\\\/wp-yoda.com\\\/en\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Docker with WSL2 based on Windows - WP Yoda","description":"WSL (Windows Subsystem for Linux) - is a Windows subsystem that can allow running Linux applications on computers without installing a separate virtual machine or different operating system.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wp-yoda.com\/en\/environment\/docker-with-wsl2-based-on-windows\/","og_locale":"en_US","og_type":"article","og_title":"Docker with WSL2 based on Windows - WP Yoda","og_description":"WSL (Windows Subsystem for Linux) - is a Windows subsystem that can allow running Linux applications on computers without installing a separate virtual machine or different operating system.","og_url":"https:\/\/wp-yoda.com\/en\/environment\/docker-with-wsl2-based-on-windows\/","og_site_name":"WP Yoda","article_published_time":"2023-05-18T21:37:23+00:00","article_modified_time":"2023-08-21T12:01:50+00:00","og_image":[{"width":1728,"height":864,"url":"https:\/\/wp-yoda.com\/wp-content\/uploads\/2023\/04\/andrew_222_docker__wsl2__windows_dd3830b4-20da-4c02-80a3-a11c841a5663.png","type":"image\/png"}],"author":"\u0410\u043d\u0434\u0440\u0435\u0439 \u041f\u0438\u0441\u0430\u0440\u0435\u0432\u0441\u043a\u0438\u0439","twitter_card":"summary_large_image","twitter_misc":{"Written by":"\u0410\u043d\u0434\u0440\u0435\u0439 \u041f\u0438\u0441\u0430\u0440\u0435\u0432\u0441\u043a\u0438\u0439","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/wp-yoda.com\/en\/environment\/docker-with-wsl2-based-on-windows\/#article","isPartOf":{"@id":"https:\/\/wp-yoda.com\/en\/environment\/docker-with-wsl2-based-on-windows\/"},"author":{"name":"\u0410\u043d\u0434\u0440\u0435\u0439 \u041f\u0438\u0441\u0430\u0440\u0435\u0432\u0441\u043a\u0438\u0439","@id":"https:\/\/wp-yoda.com\/en\/#\/schema\/person\/195c797aee113d174e07e4887a9fe464"},"headline":"Docker with WSL2 based on Windows","datePublished":"2023-05-18T21:37:23+00:00","dateModified":"2023-08-21T12:01:50+00:00","mainEntityOfPage":{"@id":"https:\/\/wp-yoda.com\/en\/environment\/docker-with-wsl2-based-on-windows\/"},"wordCount":600,"commentCount":0,"publisher":{"@id":"https:\/\/wp-yoda.com\/en\/#organization"},"image":{"@id":"https:\/\/wp-yoda.com\/en\/environment\/docker-with-wsl2-based-on-windows\/#primaryimage"},"thumbnailUrl":"https:\/\/wp-yoda.com\/wp-content\/uploads\/2023\/04\/andrew_222_docker__wsl2__windows_dd3830b4-20da-4c02-80a3-a11c841a5663.png","keywords":["docker","windows","wsl","wsl2"],"articleSection":["Environment"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wp-yoda.com\/en\/environment\/docker-with-wsl2-based-on-windows\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/wp-yoda.com\/en\/environment\/docker-with-wsl2-based-on-windows\/","url":"https:\/\/wp-yoda.com\/en\/environment\/docker-with-wsl2-based-on-windows\/","name":"Docker with WSL2 based on Windows - WP Yoda","isPartOf":{"@id":"https:\/\/wp-yoda.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wp-yoda.com\/en\/environment\/docker-with-wsl2-based-on-windows\/#primaryimage"},"image":{"@id":"https:\/\/wp-yoda.com\/en\/environment\/docker-with-wsl2-based-on-windows\/#primaryimage"},"thumbnailUrl":"https:\/\/wp-yoda.com\/wp-content\/uploads\/2023\/04\/andrew_222_docker__wsl2__windows_dd3830b4-20da-4c02-80a3-a11c841a5663.png","datePublished":"2023-05-18T21:37:23+00:00","dateModified":"2023-08-21T12:01:50+00:00","description":"WSL (Windows Subsystem for Linux) - is a Windows subsystem that can allow running Linux applications on computers without installing a separate virtual machine or different operating system.","breadcrumb":{"@id":"https:\/\/wp-yoda.com\/en\/environment\/docker-with-wsl2-based-on-windows\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wp-yoda.com\/en\/environment\/docker-with-wsl2-based-on-windows\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-yoda.com\/en\/environment\/docker-with-wsl2-based-on-windows\/#primaryimage","url":"https:\/\/wp-yoda.com\/wp-content\/uploads\/2023\/04\/andrew_222_docker__wsl2__windows_dd3830b4-20da-4c02-80a3-a11c841a5663.png","contentUrl":"https:\/\/wp-yoda.com\/wp-content\/uploads\/2023\/04\/andrew_222_docker__wsl2__windows_dd3830b4-20da-4c02-80a3-a11c841a5663.png","width":1728,"height":864,"caption":"Docker with WSL2 based on Windows"},{"@type":"BreadcrumbList","@id":"https:\/\/wp-yoda.com\/en\/environment\/docker-with-wsl2-based-on-windows\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wp-yoda.com\/en\/"},{"@type":"ListItem","position":2,"name":"Docker with WSL2 based on Windows"}]},{"@type":"WebSite","@id":"https:\/\/wp-yoda.com\/en\/#website","url":"https:\/\/wp-yoda.com\/en\/","name":"WP Yoda","description":"Notes about PHP, WordPress and IT","publisher":{"@id":"https:\/\/wp-yoda.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wp-yoda.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/wp-yoda.com\/en\/#organization","name":"WP Yoda","url":"https:\/\/wp-yoda.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-yoda.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/wp-yoda.com\/en\/wp-content\/uploads\/sites\/2\/2023\/05\/Andrew_222_Master_Yoda__WordPress_plain_background_763a84a4-5042-4fac-9bdb-4562c05563e7.png","contentUrl":"https:\/\/wp-yoda.com\/en\/wp-content\/uploads\/sites\/2\/2023\/05\/Andrew_222_Master_Yoda__WordPress_plain_background_763a84a4-5042-4fac-9bdb-4562c05563e7.png","width":1024,"height":1024,"caption":"WP Yoda"},"image":{"@id":"https:\/\/wp-yoda.com\/en\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/wp-yoda.com\/en\/#\/schema\/person\/195c797aee113d174e07e4887a9fe464","name":"\u0410\u043d\u0434\u0440\u0435\u0439 \u041f\u0438\u0441\u0430\u0440\u0435\u0432\u0441\u043a\u0438\u0439","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/d3f11053e005f02e0dc3049c010b45034646963c7af8edac8076c3767022d750?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d3f11053e005f02e0dc3049c010b45034646963c7af8edac8076c3767022d750?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d3f11053e005f02e0dc3049c010b45034646963c7af8edac8076c3767022d750?s=96&r=g","caption":"\u0410\u043d\u0434\u0440\u0435\u0439 \u041f\u0438\u0441\u0430\u0440\u0435\u0432\u0441\u043a\u0438\u0439"},"sameAs":["https:\/\/wp-yoda.com"],"url":"https:\/\/wp-yoda.com\/en\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/wp-yoda.com\/en\/wp-json\/wp\/v2\/posts\/138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp-yoda.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp-yoda.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp-yoda.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp-yoda.com\/en\/wp-json\/wp\/v2\/comments?post=138"}],"version-history":[{"count":0,"href":"https:\/\/wp-yoda.com\/en\/wp-json\/wp\/v2\/posts\/138\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wp-yoda.com\/en\/wp-json\/wp\/v2\/media\/140"}],"wp:attachment":[{"href":"https:\/\/wp-yoda.com\/en\/wp-json\/wp\/v2\/media?parent=138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp-yoda.com\/en\/wp-json\/wp\/v2\/categories?post=138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp-yoda.com\/en\/wp-json\/wp\/v2\/tags?post=138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}