Also show image name of the connected container

pull/4/head
Guido Diepen 2017-04-25 10:08:52 +02:00
rodzic b4c25c1871
commit 38c6ef5988
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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