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
Description
Running docker service ls -f name=<partial_name_not_from_start> will only match service names that start with this name and not actual partial names
Steps to reproduce the issue:
Create a service with the name my_random_service
Run the command docker service ls -f name=random
Describe the results you received:
No result
Describe the results you expected:
Should return the created my_random_service
Additional information you deem important (e.g. issue happens only occasionally):
Running docker service ls -f name=my_random will return the service. (Filtered name matches beginning of string)
Output of docker version:
Client:
Version: 17.12.0-ce
API version: 1.35
Go version: go1.9.2
Git commit: c97c6d6
Built: Wed Dec 27 20:11:19 2017
OS/Arch: linux/amd64
Server:
Engine:
Version: 17.12.0-ce
API version: 1.35 (minimum version 1.12)
Go version: go1.9.2
Git commit: c97c6d6
Built: Wed Dec 27 20:09:53 2017
OS/Arch: linux/amd64
Experimental: false
Also, trying to match the beginning of the name explicitly using ^ (--filter name=^something) doesn't match services whose name does start with something. I thought this might work because that's how docker network ls behaves... but also found out docker ps doesn't support it? Is there a centralized issue somewhere to standardize the behavior of --filter?
Description
Running
docker service ls -f name=<partial_name_not_from_start>
will only match service names that start with this name and not actual partial namesSteps to reproduce the issue:
docker service ls -f name=random
Describe the results you received:
No result
Describe the results you expected:
Should return the created my_random_service
Additional information you deem important (e.g. issue happens only occasionally):
Running
docker service ls -f name=my_random
will return the service. (Filtered name matches beginning of string)Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
Running on AWS
The text was updated successfully, but these errors were encountered: