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

Docker service unable to parse docker ps format template #62

Open
mickeyperlstein opened this issue Aug 29, 2024 · 0 comments
Open

Docker service unable to parse docker ps format template #62

mickeyperlstein opened this issue Aug 29, 2024 · 0 comments

Comments

@mickeyperlstein
Copy link

mickeyperlstein commented Aug 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant