p1c2u / vscode-docker-compose

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

Docker service unable to parse docker ps format template #62

Open mickeyperlstein opened 2 months ago

mickeyperlstein commented 2 months ago

My Setup:

  1. Docker Desktop 4.33.1 (161083)
  2. Docker version 27.1.1, build 6312585
  3. Docker Compose version v2.29.1-desktop.1
  4. Docker Compose extension v0.5.1

Issue

When I run docker-compose in my terminal, I open the docker-compose extension

The projects section shows the directory where the docker-compose is located under services, i get 3 (X) Failed to execute docker command

This is the command in full as appears in the popup window when i mouse-over: docker ps -a --format '{{.Label "com.docker.compose.service"}}' --filter label=com.docker.compose.project=Core --filter name=core-couchbase-1

The following partial commands work:

docker ps -a --filter label=com.docker.compose.project=Core docker ps -a --filter name=core-couchbase-1

The following fails:

docker ps -a --format '{{.Names}}: {{.Label "com.docker.compose.service"}}' it fails with: failed to parse template: template: :1: function "com" not defined