Skip to content
This repository was archived by the owner on Jan 23, 2020. It is now read-only.
This repository was archived by the owner on Jan 23, 2020. It is now read-only.

docker ps <service> lists tasks for all services starting with service name <service> #77

Open
@Deepak-Vohra

Description

@Deepak-Vohra

Expected behavior

Only tasks for a specific service be listed.

Actual behavior

Tasks for all services starting with the specified service name get listed.

Steps to reproduce the behavior

  1. ...Create two services (any arbitrary Docker services) with one with suffix -2. For example, two services mysql and mysql-2.
  2. ...The docker service ps mysql command lists tasks for both the services mysql and mysql-2.
~ $ docker service ls
ID                  NAME                MODE                REPLICAS            IMAGE               PORTS
likujs72e46t        mysql               replicated          3/3                 mysql:latest        
ocd9sz8qqp2b        mysql-2             replicated          3/3                 mysql:latest        
~ $ docker service ps mysql
ID                  NAME                IMAGE               NODE                            DESIRED STATE       CURRENT STATE            ERROR               PORTS
c2ckhyi0rmry        mysql-2.1           mysql:latest        ip-172-31-47-15.ec2.internal    Running             Running 11 minutes ago                       
v4bn24seygc6        mysql.1             mysql:latest        ip-172-31-47-15.ec2.internal    Running             Running 29 minutes ago                       
wnr3x7khz9vg        mysql-2.2           mysql:latest        ip-172-31-47-123.ec2.internal   Running             Running 7 minutes ago                        
29702ebj52gs        mysql.2             mysql:latest        ip-172-31-47-123.ec2.internal   Running             Running 27 minutes ago                       
f0112rfzt1cd        mysql-2.3           mysql:latest        ip-172-31-3-168.ec2.internal    Running             Running 7 minutes ago                        
c7b8v16msudl        mysql.3             mysql:latest        ip-172-31-3-168.ec2.internal    Running             Running 27 minutes ago         

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions