1

is it possible to show relations between container and volumes? My problem is that my docker server has round about 44k volumes, most of them are dangling. and before I want to run a prune I want to know which of my container creates so much volumes. cheers chris

Christian
  • 1,022
  • 13
  • 28
  • This post might help you, you can check the attached volumes per container. https://stackoverflow.com/questions/30133664/how-do-you-list-volumes-in-docker-containers – Teun van der Wijst Dec 04 '18 at 08:58

1 Answers1

0

I would try to look at the system events log for past day to see what is going on.

docker system events --since `date -d "1 day ago" +%s` 

If the containers are not destroyed immediately or they run for a while, you can try to inspect the containers with:

docker container inspect <hash>

To see what images and volumes are being mapped.

Jiri Klouda
  • 1,362
  • 12
  • 25