-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Closed
Description
issue #8959 seems to suggest that it would be legal to filter on container name:
docker ps -aq --filter "name=rancher"
It seems to work in some cases, but I miss the logic in the following. This is my list of containers:
docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
98d2b421d29c ubuntu:14.04.1 "/bin/bash" 6 hours ago Up 3 hours fdd4ebde-59af-4491-a42c-097e044e30aa
5672a1095b9a rancher/agent-instance:v0.1.0 "/etc/init.d/agent-i 6 hours ago Up 3 hours 0.0.0.0:500->500/udp, 0.0.0.0:4500->4500/udp 45f97b1e-5b0c-436a-8836-0241fd8567e2
2010ca4a02fb rancher/agent:v0.3.2 "/run.sh run" 6 hours ago Exited (137) 36 minutes ago rancher-agent
5654bcdbd588 rancher/agent:v0.3.2 "/run.sh upgrade-sta 6 hours ago Exited (0) 6 hours ago ecstatic_wozniak
a7cd9f25f3cc rancher/agent:v0.3.2 "/run.sh upgrade" 6 hours ago Exited (-1) 6 hours ago prickly_pike
9284eac5047f rancher/agent:latest "/run.sh run" 6 hours ago Exited (-1) 6 hours ago desperate_ritchie
f74766747ceb rancher/agent:latest "/run.sh register" 6 hours ago Exited (0) 6 hours ago compassionate_fermat
879b626f1c24 rancher/agent:latest "/run.sh state" 6 hours ago Exited (0) 6 hours ago rancher-agent-state
5884424f695e rancher/agent:latest "/run.sh http://loca 6 hours ago Exited (1) 6 hours ago elated_brattain
b2617f69275e rancher/server:beta "/usr/share/cattle/c 6 hours ago Up 3 hours 0.0.0.0:8080->8080/tcp grave_wilson
6ff50bb6570c extellisys/apt-cacher-ng:0.1.0 "/bin/sh -c '/usr/sb 2 days ago Up About an hour 0.0.0.0:3142->3142/tcp apt-cacher-ng
0e3dd97d866f tutum/grafana:latest "/run.sh" 5 days ago Exited (-1) 2 days ago grafana
53edefb7b786 extellisys/apt-cacher-ng:0.1.0 "/bin/sh -c '/usr/sb 7 days ago Exited (128) 2 days ago thirsty_babbage
10e66481f63d registry:latest "docker-registry" 10 days ago Up About an hour 0.0.0.0:5000->5000/tcp registry-mirror
I would expect 879b626f1c24 and 2010ca4a02fb to show up in the filter for name=rancher. However:
$ docker ps -a --filter="name=rancher"
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2010ca4a02fb rancher/agent:v0.3.2 "/run.sh run" 6 hours ago Exited (137) 37 minutes ago rancher-agent
5654bcdbd588 rancher/agent:v0.3.2 "/run.sh upgrade-sta 6 hours ago Exited (0) 6 hours ago ecstatic_wozniak
a7cd9f25f3cc rancher/agent:v0.3.2 "/run.sh upgrade" 6 hours ago Exited (-1) 6 hours ago prickly_pike
879b626f1c24 rancher/agent:latest "/run.sh state" 6 hours ago Exited (0) 6 hours ago rancher-agent-state
if the filtered thing would also search on Image name, I would expect even more than 4 results, so I really do not see the logic. Is this a bug?
I am using Docker version 1.5.0, build a8a31ef
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels