-
Notifications
You must be signed in to change notification settings - Fork 522
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
Comments
@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:
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 |
Hey @eli-kaplan , now that the Docker extension behaves as a workspace extension by default, is this issue still occurring? |
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! |
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 selectingDocker: Compose Up
(orDown
), the plugin tries to change directory to the absolute path to the working directory before runningdocker-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 withNo such file or directory
. When the project working directory is the same as the location of thedocker-compose.yml
file, theCompose 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.The text was updated successfully, but these errors were encountered: