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

Directory paths formatted incorrectly on WSL #960

Closed
eli-kaplan opened this issue May 24, 2019 · 3 comments
Closed

Directory paths formatted incorrectly on WSL #960

eli-kaplan opened this issue May 24, 2019 · 3 comments
Labels
info-needed remote VS Code remote

Comments

@eli-kaplan
Copy link

Running latest version of VS Code Insiders, and using WSL as a "remote" environment. When running docker-compose through the plugin (i.e. by pressing Ctrl + Shift + P then selecting Docker: Compose Up (or Down), the plugin tries to change directory to the absolute path to the working directory before running docker-compose, as such:

cd "\mnt\c\Repos\....\....."
docker-compose -f "docker-compose.yml" up -d --build

The path itself is correct, but on WSL, paths must use forward slashes, not backslashes. The cd command thus fails with No such file or directory. When the project working directory is the same as the location of the docker-compose.yml file, the Compose Up / Compose Down commands still run fine, but I suspect if the file were to be located outside of the project working directory, the commands would fail.

@ejizba
Copy link
Contributor

ejizba commented May 24, 2019

@eliplan312 by default the Docker extension is currently running as a UI extension, which means it's running in the local environment. We're debating the best default behavior (see #954), but you could try switching to a Workspace extension (which means it'll run in the remote environment, aka WSL) by adding this to your settings:

"remote.extensionKind": {
    "ms-azuretools.vscode-docker": "workspace"
}

That will probably have other effects, which you may or may not like. Would love to hear your preference on running as a UI vs. Workspace extension

@bwateratmsft
Copy link
Collaborator

Hey @eli-kaplan , now that the Docker extension behaves as a workspace extension by default, is this issue still occurring?

@vscodebot
Copy link

vscodebot bot commented Nov 25, 2019

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!

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed remote VS Code remote
Projects
None yet
Development

No branches or pull requests

3 participants