From 38c6ef598868de7d01f37df458c078896bfd3167 Mon Sep 17 00:00:00 2001 From: Guido Diepen Date: Tue, 25 Apr 2017 10:08:52 +0200 Subject: [PATCH] Also show image name of the connected container --- docker_get_data_volume_info.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker_get_data_volume_info.sh b/docker_get_data_volume_info.sh index 2b4f084..dff35e4 100644 --- a/docker_get_data_volume_info.sh +++ b/docker_get_data_volume_info.sh @@ -17,7 +17,7 @@ do if (( $num_related_containers > 0 )) then echo " Connected containers:" - docker ps -a --filter=volume=${docker_volume_id} --format "{{.Names}} ({{.Status}})" | while read containerDetails + docker ps -a --filter=volume=${docker_volume_id} --format "{{.Names}} [{{.Image}}] ({{.Status}})" | while read containerDetails do echo " ${containerDetails}" done