p1c2u / vscode-docker-compose

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

Windows 10 issue with docker ps #38

Open Cyntaax opened 5 years ago

Cyntaax commented 5 years ago

Installed` the extension immediately got this when switching to the docker-compose tab:

"docker ps" accepts no arguments.
See 'docker ps --help'.

Usage:  docker ps [OPTIONS]

List containers

I dug through the source and ran this line manually in Node

execSync(`docker ps -a --format '{{.Label "com.docker.compose.service"}}' --filter name=${containerName} --filter label=com.docker.compose.project=${projectName}`)```

Still got the same error.

Running the command in shell works perfectly

Version: 1.39.1 (user setup) Commit: 88f15d17dca836346e787762685a40bb5cce75a8 Date: 2019-10-10T23:31:28.683Z Electron: 4.2.10 Chrome: 69.0.3497.128 Node.js: 10.11.0 V8: 6.9.427.31-electron.0 OS: Windows_NT x64 10.0.17763

phemto5 commented 3 years ago

When I try to run it manually it give me an error:

docker ps -a --format '{{.Label "com.docker.compose.service"}}' --filter name=${containername} --filter lavbl=com.docker.compose.project=${projectname}

failed to parse template: template: :1: function "com" not defined