This extension allows you to work with a remote server in the Linux distro and your IDE client still on Windows. Open VSCode and install the Remote - WSL extension.This workflow can be pretty straightforward if you are using VSCode. After you have enabled WSL 2 on Docker Desktop, you can start working with your code inside the Linux distro and ideally with your IDE still in Windows. We recommend that you have your code in your default Linux distribution for the best development experience using Docker and WSL 2. The following section describes how to start developing your applications using Docker and WSL 2. Optionally, select any additional distributions you would like to enable WSL 2 on. įor example, to set Ubuntu as your default WSL distro, run wsl -set-default ubuntu. To change your default WSL distro, run wsl -set-default. WSL Integration will be enabled on your default WSL distribution. When Docker Desktop restarts, go to Settings > Resources > WSL Integration. To set v2 as the default version for future installations, run: To upgrade your existing Linux distro to v2, run: WSL can run distributions in both v1 or v2 mode. If you have installed Docker Desktop on a system that supports WSL 2, this option will be enabled by default.Įnsure the distribution runs in WSL 2 mode. Select the Use WSL 2 based engine check box.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |