diff scripts/d-images.ps @ 58:fd8c9e7950d3

use inspect to display ssdt id's
author smith@nwoca.org
date Wed, 09 Mar 2016 01:09:12 +0000
parents 99efff8e5337
children
line wrap: on
line diff
--- a/scripts/d-images.ps	Wed Mar 09 00:45:02 2016 +0000
+++ b/scripts/d-images.ps	Wed Mar 09 01:09:12 2016 +0000
@@ -1,4 +1,4 @@
 #!/bin/bash
-docker images --format="table {{.Repository}}\t{{.Tag}}\t{{.Label \"io.ssdt.id\"}}\t{{.Label \"io.ssdt.app\"}}\t{{.Label \"io.ssdt.type\"}}" $@
+docker images --filter "label=io.ssdt.id" -q | xargs docker inspect --format "{{.RepoTags}} {{index .Config.Labels \"io.ssdt.id\"}}" --type image