TritonDataCenter / sdc-docker

Docker Engine for Triton
Mozilla Public License 2.0
183 stars 49 forks source link

DOCKER-697 add support for filtering on label w/ docker 1.10 #65

Closed joshwilsdon closed 8 years ago

joshwilsdon commented 8 years ago

With docker 1.10 they changed the data sent with the command:

docker ps --filter "label=com.joyent.package=sample-1G" --format '{{.ID}} {{.Label "com.joyent.package"}}'

such that instead of an array, we get an object. This PR fixes so that we work with both forms.