Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows with WSL can't compose up, if not connected to wsl as remote #3991

Closed
dysondi opened this issue Jun 29, 2023 · 2 comments
Closed

Windows with WSL can't compose up, if not connected to wsl as remote #3991

dysondi opened this issue Jun 29, 2023 · 2 comments

Comments

@dysondi
Copy link

dysondi commented Jun 29, 2023

This occurs consistently

Repro steps:

  1. create any docker-compose.yml file
  2. make sure that VS Code don't connected to WSL as remote window, it should be native windows
  3. right click to docker-compose.yml file in explorer
  4. Compose UP
    expected results- compouse up
    actual result - next error:
    error, which I got:
    Executing task: docker compose -f "monitoring\docker-compose.yml" up -d --build

stat /mnt/d/Nextcloud/GIT/BT/infrastructure/monitoring\docker-compose.yml: no such file or directory

  • The terminal process "C:\WINDOWS\System32\wsl.exe -d Ubuntu-20.04 -e docker compose -f "monitoring\docker-compose.yml" up -d --build" terminated with exit code: 14.
  • Terminal will be reused by tasks, press any key to close it.

It uses wsl.exe command but path to docker-compose.yml is relative, not full
in my case it should be /mnt/d/Nextcloud/GIT/BT/infrastructure/monitoring/docker-compose.yml

I don't know why slash in "stat" command is in other side

otherwise, if I click reopen window in WSL, everything works great

Version: 1.25.2
OS: win32
OS Release: 10.0.22621
Product: Visual Studio Code
Product Version: 1.79.2
Language: en

@danegsta
Copy link
Contributor

danegsta commented Jul 6, 2023

@dysondi this looks to be a duplicate of #3803; we don't currently support running Docker commands directly inside a specific WSL instance without WSL remoting. We don't currently have any commands that would be executed using wsl.exe; do you have any extra WSL related extensions installed that may be overriding your vscode terminal behavior?

@AzCode-Bot
Copy link
Collaborator

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

@AzCode-Bot AzCode-Bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 21, 2023
@microsoft microsoft locked and limited conversation to collaborators Sep 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants