Open remingtonc opened 6 years ago
I believe that docker stack ps
matches docker service ps
. The problem with both of these is that they are poorly named. They actually list swarm tasks, not containers. They should have been called docker stack tasks
and docker service tasks
.
@dnephin TIL. Did not realize stack was an abstraction on service. Will need to research further - will close if this is a needless/invalid issue.
Description
docker stack ps <stackname>
anddocker ps
name outputs are different, namely the fully qualified name is a concatenation ofdocker stack ps
output of format{{.Name}}.{{.ID}}
(and sometimes isn't). This inconsistency breaks tooling likedocker wait
expecting the full name.This could be looked at several ways... Maybe this is a wontfix and the only workaround is to use the
{{.Name}}.{{.ID}}
format - if so it should at least be documented/consistent. Maybedocker wait
should handle IDs as well as names. etc. etc. Maybedocker stack rm
should have a--wait
parameter. Ordocker stack wait
.Migrating issue from https://github.com/docker/for-mac/issues/2671.
Steps to reproduce the issue:
docker ps
docker stack ps <stackname>
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally): Haven't completely validated the
docker wait
methodology exposed above - looks like sometimesdocker stack ps
outputs the full name sometimes and a truncated name other times.Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.): Physical, Laptop, Docker for Mac