Connecting WSL VSCode extension to docker installed in WindowsFrom inside of a Docker container, how do I connect to the localhost of the machine?Docker run ubuntu command failed with error : Error while pulling image:Dockerfile “rm -Rf” failDocker: Installing libraries on centos image“service -s” not working inside Docker containerYahoo manager error using Docker Ask timed out on [ActorSelection[Anchor(akka://kafka-manager-system/),error while creating mount source path '/host_mnt/c/Users/xxx/redis.conf': mkdir /host_mnt/c/Users/xxx: permission denieddocker build fails with “address already in use”

Do manacles provide any sort of in-game mechanical effect or condition?

Is the Amazon rainforest the "world's lungs"?

How can I throw a body?

What is the purpose of Strength, Intelligence and Dexterity in Path of Exile?

Get contents before a colon

In Endgame, wouldn't Stark have remembered Hulk busting out of the stairwell?

Are spot colors limited and why CMYK mix is not treated same as spot color mix?

How to investigate an unknown 1.5GB file named "sudo" in my Linux home directory?

What is this "opened" cube called?

Idiomatic way to create an immutable and efficient class in C++?

How did medieval manors handle population growth? Was there room for more fields to be ploughed?

Could a complex system of reaction wheels be used to propel a spacecraft?

How to stay mindful of the gap in the breath

What's the difference between a variable and a memory location?

Why can't miners meet the difficulty by picking a low number for the block hash?

Is it possible for a person to be tricked into becoming a lich?

Group by consecutive index numbers

Why do presidential pardons exist in a country having a clear separation of powers?

Moscow SVO airport, how to avoid scam taxis without pre-booking?

Is this homebrew "Faerie Fire Grenade" unbalanced?

I feel cheated by my new employer, does this sound right?

Do multi-engine jets need all engines with equal age to reduce asymmetry in thrust and fuel consumption arising out of deterioration?

Can a network vulnerability be exploited locally?

Did the Apollo Guidance Computer really use 60% of the world's ICs in 1963?



Connecting WSL VSCode extension to docker installed in Windows


From inside of a Docker container, how do I connect to the localhost of the machine?Docker run ubuntu command failed with error : Error while pulling image:Dockerfile “rm -Rf” failDocker: Installing libraries on centos image“service -s” not working inside Docker containerYahoo manager error using Docker Ask timed out on [ActorSelection[Anchor(akka://kafka-manager-system/),error while creating mount source path '/host_mnt/c/Users/xxx/redis.conf': mkdir /host_mnt/c/Users/xxx: permission denieddocker build fails with “address already in use”






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















I've installed Windows Subsystem for Linux (WSL) on my Windows 10 Pro machine. Following this tutorial, I set up docker on windows to work with WSL. In command-line of WSL, docker is working perfectly fine. I built multiple images and ran it in WSL.



I also have installed Microsoft Visual Studio Code inside WSL. I'm using it with the help of an X server for windows (VcXsrv). Inside VSCode, I have installed the docker extension. Even though I set the docker host correctly inside the settings, it's not connecting to Docker.



I know this is a twisted setup and I can use a proper Linux installation to make this work. But I need to know if it's possible to make it work in the current setup as it is important for me. Any help would be appreciated.



The exact error message thrown is:



Unable to connect to Docker. 
Please make sure you have installed Docker and that it is running.
Also, make sure you've followed the Linux post-install instructions:
"Manage Docker as a non-root user".
Details: connect ECONNREFUSED 127.0.0.1:80


My VSCode settings.json file:




"editor.fontFamily": "'Fira Code'",
"terminal.integrated.shell.linux": "/bin/zsh",
"terminal.integrated.fontFamily": "monospace",
"editor.fontLigatures": true,
"terminal.integrated.fontWeightBold": "normal",
"editor.fontWeight": "500",
"python.venvPath": "/home/r2m/Work/venv",
"terminal.integrated.rendererType": "dom",
"git.autofetch": true,
"workbench.colorTheme": "Material Theme Darker High Contrast",
"docker.host": "tcp://localhost:2375"



Output of docker info ran in WSL:



Containers: 2
Running: 0
Paused: 0
Stopped: 2
Images: 16
Server Version: 18.09.2
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9754871865f7fe2f4e74d43e2fc7ccd237edcbce
runc version: 09c8266bf2fcf9519a651b04ae54c967b9ab86ec
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.125-linuxkit
Operating System: Docker for Windows
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.934GiB
Name: linuxkit-00155d028201
ID: PBQD:BCLL:MYXY:6OFR:KJB2:UK46:VQWG:ELYT:6NGO:42QP:4SRK:FHO2
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: 22
Goroutines: 47
System Time: 2019-03-27T22:09:33.2435878Z
EventsListeners: 1
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine









share|improve this question
























  • Add current user to docker group with sudo usermod -aG docker $USER.

    – Biswapriyo
    Mar 28 at 19:24











  • Uhm. I'm very familiar with docker and Linux. And so yes, I've done that.

    – icyfire
    Mar 28 at 21:34











  • Can you specify what you did in Vscode for docker? In my case, Vscode can run docker image from command pallet without any error. See this image.

    – Biswapriyo
    Mar 29 at 6:38











  • do you have DOCKER_HOST specified in .bashrc or .zshrc?

    – Biswapriyo
    Mar 29 at 7:29











  • @Biswapriyo Yes I have DOCKER_HOST specified in .bashrc and .zshrc

    – icyfire
    Mar 29 at 9:00

















2















I've installed Windows Subsystem for Linux (WSL) on my Windows 10 Pro machine. Following this tutorial, I set up docker on windows to work with WSL. In command-line of WSL, docker is working perfectly fine. I built multiple images and ran it in WSL.



I also have installed Microsoft Visual Studio Code inside WSL. I'm using it with the help of an X server for windows (VcXsrv). Inside VSCode, I have installed the docker extension. Even though I set the docker host correctly inside the settings, it's not connecting to Docker.



I know this is a twisted setup and I can use a proper Linux installation to make this work. But I need to know if it's possible to make it work in the current setup as it is important for me. Any help would be appreciated.



The exact error message thrown is:



Unable to connect to Docker. 
Please make sure you have installed Docker and that it is running.
Also, make sure you've followed the Linux post-install instructions:
"Manage Docker as a non-root user".
Details: connect ECONNREFUSED 127.0.0.1:80


My VSCode settings.json file:




"editor.fontFamily": "'Fira Code'",
"terminal.integrated.shell.linux": "/bin/zsh",
"terminal.integrated.fontFamily": "monospace",
"editor.fontLigatures": true,
"terminal.integrated.fontWeightBold": "normal",
"editor.fontWeight": "500",
"python.venvPath": "/home/r2m/Work/venv",
"terminal.integrated.rendererType": "dom",
"git.autofetch": true,
"workbench.colorTheme": "Material Theme Darker High Contrast",
"docker.host": "tcp://localhost:2375"



Output of docker info ran in WSL:



Containers: 2
Running: 0
Paused: 0
Stopped: 2
Images: 16
Server Version: 18.09.2
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9754871865f7fe2f4e74d43e2fc7ccd237edcbce
runc version: 09c8266bf2fcf9519a651b04ae54c967b9ab86ec
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.125-linuxkit
Operating System: Docker for Windows
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.934GiB
Name: linuxkit-00155d028201
ID: PBQD:BCLL:MYXY:6OFR:KJB2:UK46:VQWG:ELYT:6NGO:42QP:4SRK:FHO2
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: 22
Goroutines: 47
System Time: 2019-03-27T22:09:33.2435878Z
EventsListeners: 1
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine









share|improve this question
























  • Add current user to docker group with sudo usermod -aG docker $USER.

    – Biswapriyo
    Mar 28 at 19:24











  • Uhm. I'm very familiar with docker and Linux. And so yes, I've done that.

    – icyfire
    Mar 28 at 21:34











  • Can you specify what you did in Vscode for docker? In my case, Vscode can run docker image from command pallet without any error. See this image.

    – Biswapriyo
    Mar 29 at 6:38











  • do you have DOCKER_HOST specified in .bashrc or .zshrc?

    – Biswapriyo
    Mar 29 at 7:29











  • @Biswapriyo Yes I have DOCKER_HOST specified in .bashrc and .zshrc

    – icyfire
    Mar 29 at 9:00













2












2








2








I've installed Windows Subsystem for Linux (WSL) on my Windows 10 Pro machine. Following this tutorial, I set up docker on windows to work with WSL. In command-line of WSL, docker is working perfectly fine. I built multiple images and ran it in WSL.



I also have installed Microsoft Visual Studio Code inside WSL. I'm using it with the help of an X server for windows (VcXsrv). Inside VSCode, I have installed the docker extension. Even though I set the docker host correctly inside the settings, it's not connecting to Docker.



I know this is a twisted setup and I can use a proper Linux installation to make this work. But I need to know if it's possible to make it work in the current setup as it is important for me. Any help would be appreciated.



The exact error message thrown is:



Unable to connect to Docker. 
Please make sure you have installed Docker and that it is running.
Also, make sure you've followed the Linux post-install instructions:
"Manage Docker as a non-root user".
Details: connect ECONNREFUSED 127.0.0.1:80


My VSCode settings.json file:




"editor.fontFamily": "'Fira Code'",
"terminal.integrated.shell.linux": "/bin/zsh",
"terminal.integrated.fontFamily": "monospace",
"editor.fontLigatures": true,
"terminal.integrated.fontWeightBold": "normal",
"editor.fontWeight": "500",
"python.venvPath": "/home/r2m/Work/venv",
"terminal.integrated.rendererType": "dom",
"git.autofetch": true,
"workbench.colorTheme": "Material Theme Darker High Contrast",
"docker.host": "tcp://localhost:2375"



Output of docker info ran in WSL:



Containers: 2
Running: 0
Paused: 0
Stopped: 2
Images: 16
Server Version: 18.09.2
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9754871865f7fe2f4e74d43e2fc7ccd237edcbce
runc version: 09c8266bf2fcf9519a651b04ae54c967b9ab86ec
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.125-linuxkit
Operating System: Docker for Windows
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.934GiB
Name: linuxkit-00155d028201
ID: PBQD:BCLL:MYXY:6OFR:KJB2:UK46:VQWG:ELYT:6NGO:42QP:4SRK:FHO2
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: 22
Goroutines: 47
System Time: 2019-03-27T22:09:33.2435878Z
EventsListeners: 1
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine









share|improve this question














I've installed Windows Subsystem for Linux (WSL) on my Windows 10 Pro machine. Following this tutorial, I set up docker on windows to work with WSL. In command-line of WSL, docker is working perfectly fine. I built multiple images and ran it in WSL.



I also have installed Microsoft Visual Studio Code inside WSL. I'm using it with the help of an X server for windows (VcXsrv). Inside VSCode, I have installed the docker extension. Even though I set the docker host correctly inside the settings, it's not connecting to Docker.



I know this is a twisted setup and I can use a proper Linux installation to make this work. But I need to know if it's possible to make it work in the current setup as it is important for me. Any help would be appreciated.



The exact error message thrown is:



Unable to connect to Docker. 
Please make sure you have installed Docker and that it is running.
Also, make sure you've followed the Linux post-install instructions:
"Manage Docker as a non-root user".
Details: connect ECONNREFUSED 127.0.0.1:80


My VSCode settings.json file:




"editor.fontFamily": "'Fira Code'",
"terminal.integrated.shell.linux": "/bin/zsh",
"terminal.integrated.fontFamily": "monospace",
"editor.fontLigatures": true,
"terminal.integrated.fontWeightBold": "normal",
"editor.fontWeight": "500",
"python.venvPath": "/home/r2m/Work/venv",
"terminal.integrated.rendererType": "dom",
"git.autofetch": true,
"workbench.colorTheme": "Material Theme Darker High Contrast",
"docker.host": "tcp://localhost:2375"



Output of docker info ran in WSL:



Containers: 2
Running: 0
Paused: 0
Stopped: 2
Images: 16
Server Version: 18.09.2
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9754871865f7fe2f4e74d43e2fc7ccd237edcbce
runc version: 09c8266bf2fcf9519a651b04ae54c967b9ab86ec
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.125-linuxkit
Operating System: Docker for Windows
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.934GiB
Name: linuxkit-00155d028201
ID: PBQD:BCLL:MYXY:6OFR:KJB2:UK46:VQWG:ELYT:6NGO:42QP:4SRK:FHO2
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: 22
Goroutines: 47
System Time: 2019-03-27T22:09:33.2435878Z
EventsListeners: 1
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine






docker visual-studio-code windows-subsystem-for-linux






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 27 at 22:13









icyfireicyfire

1791 silver badge13 bronze badges




1791 silver badge13 bronze badges















  • Add current user to docker group with sudo usermod -aG docker $USER.

    – Biswapriyo
    Mar 28 at 19:24











  • Uhm. I'm very familiar with docker and Linux. And so yes, I've done that.

    – icyfire
    Mar 28 at 21:34











  • Can you specify what you did in Vscode for docker? In my case, Vscode can run docker image from command pallet without any error. See this image.

    – Biswapriyo
    Mar 29 at 6:38











  • do you have DOCKER_HOST specified in .bashrc or .zshrc?

    – Biswapriyo
    Mar 29 at 7:29











  • @Biswapriyo Yes I have DOCKER_HOST specified in .bashrc and .zshrc

    – icyfire
    Mar 29 at 9:00

















  • Add current user to docker group with sudo usermod -aG docker $USER.

    – Biswapriyo
    Mar 28 at 19:24











  • Uhm. I'm very familiar with docker and Linux. And so yes, I've done that.

    – icyfire
    Mar 28 at 21:34











  • Can you specify what you did in Vscode for docker? In my case, Vscode can run docker image from command pallet without any error. See this image.

    – Biswapriyo
    Mar 29 at 6:38











  • do you have DOCKER_HOST specified in .bashrc or .zshrc?

    – Biswapriyo
    Mar 29 at 7:29











  • @Biswapriyo Yes I have DOCKER_HOST specified in .bashrc and .zshrc

    – icyfire
    Mar 29 at 9:00
















Add current user to docker group with sudo usermod -aG docker $USER.

– Biswapriyo
Mar 28 at 19:24





Add current user to docker group with sudo usermod -aG docker $USER.

– Biswapriyo
Mar 28 at 19:24













Uhm. I'm very familiar with docker and Linux. And so yes, I've done that.

– icyfire
Mar 28 at 21:34





Uhm. I'm very familiar with docker and Linux. And so yes, I've done that.

– icyfire
Mar 28 at 21:34













Can you specify what you did in Vscode for docker? In my case, Vscode can run docker image from command pallet without any error. See this image.

– Biswapriyo
Mar 29 at 6:38





Can you specify what you did in Vscode for docker? In my case, Vscode can run docker image from command pallet without any error. See this image.

– Biswapriyo
Mar 29 at 6:38













do you have DOCKER_HOST specified in .bashrc or .zshrc?

– Biswapriyo
Mar 29 at 7:29





do you have DOCKER_HOST specified in .bashrc or .zshrc?

– Biswapriyo
Mar 29 at 7:29













@Biswapriyo Yes I have DOCKER_HOST specified in .bashrc and .zshrc

– icyfire
Mar 29 at 9:00





@Biswapriyo Yes I have DOCKER_HOST specified in .bashrc and .zshrc

– icyfire
Mar 29 at 9:00












1 Answer
1






active

oldest

votes


















1















This is strange: Details: connect ECONNREFUSED 127.0.0.1:80. The extension should not connect to 80 port. Do you remember setting this anywhere?



For now this combination works quite well:



  1. VSCode Insider Windows with Remote Development Extension https://aka.ms/vscode-remote/download/extension

  2. Docker for Windows

  3. Docker CE CLI on WSL

BTW that guide is a little bit outdated. You should follow the official guide to install docker-cli on Linux https://docs.docker.com/install/linux/docker-ce/ubuntu/ and follow this guide to setup VSCode https://code.visualstudio.com/docs/remote/containers.



On Linux you ONLY need to install docker-cliand don't need to do Post-installation steps for Linux.



Using VSCode Linux in WSL is not recommended anymore. But the Docker extension should also work out of box in VSCode on X servers.



By the end of the month the new VM-based WSL 2 with better compatibility will also come.






share|improve this answer


























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55387278%2fconnecting-wsl-vscode-extension-to-docker-installed-in-windows%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1















    This is strange: Details: connect ECONNREFUSED 127.0.0.1:80. The extension should not connect to 80 port. Do you remember setting this anywhere?



    For now this combination works quite well:



    1. VSCode Insider Windows with Remote Development Extension https://aka.ms/vscode-remote/download/extension

    2. Docker for Windows

    3. Docker CE CLI on WSL

    BTW that guide is a little bit outdated. You should follow the official guide to install docker-cli on Linux https://docs.docker.com/install/linux/docker-ce/ubuntu/ and follow this guide to setup VSCode https://code.visualstudio.com/docs/remote/containers.



    On Linux you ONLY need to install docker-cliand don't need to do Post-installation steps for Linux.



    Using VSCode Linux in WSL is not recommended anymore. But the Docker extension should also work out of box in VSCode on X servers.



    By the end of the month the new VM-based WSL 2 with better compatibility will also come.






    share|improve this answer































      1















      This is strange: Details: connect ECONNREFUSED 127.0.0.1:80. The extension should not connect to 80 port. Do you remember setting this anywhere?



      For now this combination works quite well:



      1. VSCode Insider Windows with Remote Development Extension https://aka.ms/vscode-remote/download/extension

      2. Docker for Windows

      3. Docker CE CLI on WSL

      BTW that guide is a little bit outdated. You should follow the official guide to install docker-cli on Linux https://docs.docker.com/install/linux/docker-ce/ubuntu/ and follow this guide to setup VSCode https://code.visualstudio.com/docs/remote/containers.



      On Linux you ONLY need to install docker-cliand don't need to do Post-installation steps for Linux.



      Using VSCode Linux in WSL is not recommended anymore. But the Docker extension should also work out of box in VSCode on X servers.



      By the end of the month the new VM-based WSL 2 with better compatibility will also come.






      share|improve this answer





























        1














        1










        1









        This is strange: Details: connect ECONNREFUSED 127.0.0.1:80. The extension should not connect to 80 port. Do you remember setting this anywhere?



        For now this combination works quite well:



        1. VSCode Insider Windows with Remote Development Extension https://aka.ms/vscode-remote/download/extension

        2. Docker for Windows

        3. Docker CE CLI on WSL

        BTW that guide is a little bit outdated. You should follow the official guide to install docker-cli on Linux https://docs.docker.com/install/linux/docker-ce/ubuntu/ and follow this guide to setup VSCode https://code.visualstudio.com/docs/remote/containers.



        On Linux you ONLY need to install docker-cliand don't need to do Post-installation steps for Linux.



        Using VSCode Linux in WSL is not recommended anymore. But the Docker extension should also work out of box in VSCode on X servers.



        By the end of the month the new VM-based WSL 2 with better compatibility will also come.






        share|improve this answer















        This is strange: Details: connect ECONNREFUSED 127.0.0.1:80. The extension should not connect to 80 port. Do you remember setting this anywhere?



        For now this combination works quite well:



        1. VSCode Insider Windows with Remote Development Extension https://aka.ms/vscode-remote/download/extension

        2. Docker for Windows

        3. Docker CE CLI on WSL

        BTW that guide is a little bit outdated. You should follow the official guide to install docker-cli on Linux https://docs.docker.com/install/linux/docker-ce/ubuntu/ and follow this guide to setup VSCode https://code.visualstudio.com/docs/remote/containers.



        On Linux you ONLY need to install docker-cliand don't need to do Post-installation steps for Linux.



        Using VSCode Linux in WSL is not recommended anymore. But the Docker extension should also work out of box in VSCode on X servers.



        By the end of the month the new VM-based WSL 2 with better compatibility will also come.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jun 8 at 17:31

























        answered Jun 8 at 17:14









        zibzib

        515 bronze badges




        515 bronze badges





















            Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







            Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55387278%2fconnecting-wsl-vscode-extension-to-docker-installed-in-windows%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

            은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현