You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] command exec of compose v2 cant recognize running service #10359
$ docker compose exec web bash
=> service "web" is not running container #1
$ docker compose ps | grep web
foo-web-1 foo-web "cmd foo" web 21 hours ago Up 6 hours 127.0.0.1:xxxx->80/tcp
But docker-compose-v1 exec web bash works well.
I was work on macOS 13.0.1 (22A400) with chip Apple M1 Pro
please run docker compose inspect foo-web-1 foo-web -f '{{.Config.Labels}}' to check container labels.
It seems there no command docker compose inspect
Do you mean docker inspect?
Here are the results of docker inspect foo-web-1 foo-web -f '{{.Config.Labels}}'
Activity
ndeloof commentedon Mar 13, 2023
please run
docker compose inspect foo-web-1 foo-web -f '{{.Config.Labels}}'to check container labels.Agosits commentedon Mar 16, 2023
It seems there no command
docker compose inspectDo you mean
docker inspect?Here are the results of
docker inspect foo-web-1 foo-web -f '{{.Config.Labels}}'ndeloof commentedon Mar 16, 2023
yes indeed, sorry for the confusion.
I can't see any obvious reason for this bug :'(
ndeloof commentedon Oct 11, 2024
I'm closing this issue as obsolete, with no activity for > 1 year
If issue is still relevant, please comment or create a follow-up issue