p1c2u / vscode-docker-compose

Docker Compose Extension for Visual Studio Code
MIT License
18 stars 8 forks source link

Unable to use this extension on VS Code on Windows 10 #14

Closed qnm closed 4 years ago

qnm commented 6 years ago

This looks like a great extension - however running it on Windows 10 results in the error: Failed to retrieve project containers. I'm assuming this is because the extension assumes a POSIX environment.

I had a quick look through the https://github.com/Microsoft/vscode-docker repo and it looks like the solution could be as simple as replacing /bin/sh with powershell - see the code reference here: https://github.com/Microsoft/vscode-docker/blob/master/commands/open-shell-container.ts#L11

If I get the time I'll put together a PR, but if I'm missing a configuration option - please let me know!

p1c2u commented 6 years ago

@qnm hi, thanks for the report. Attached shell command is used inside container. You should try to change docker-compose.shell setting