mirror of
https://github.com/gdiepen/docker-convenience-scripts.git
synced 2025-01-18 10:08:55 +00:00
Also show image name of the connected container
This commit is contained in:
parent
b4c25c1871
commit
38c6ef5988
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user