You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used Postgres container and I also created a new type (Vault container).
each of the containers mounted a volume to the disk, after the tested finished and the container deleted, the volume was still in the disk and I needed to use docker system prune for deleted them.
To Reproduce
Steps to reproduce the behavior:
Run Postgres test container
Finish the UT gracefully saw the dispose will call
go to the terminal and run docker volume ls -f dangling=true
and see the unused volumes
I tried to override the dispose method in the container class I created but the details of the containers and the used volumes are private and I couldn't access it for calling the remove after the docker removed.
also I could use your docker api client since its internal so anyway I need to do the system call separately.
there is other way to do it, by calling the container remove with the flag -v that delete the unnamed volumes with it (only unnamed volumes, I'm not sure what kind of volumes you using)
Desktop (please complete the following information):
Server: Docker Engine - Community
Engine:
Version: 19.03.5
Nuget version - 0.0.9
The text was updated successfully, but these errors were encountered:
I used Postgres container and I also created a new type (Vault container).
each of the containers mounted a volume to the disk, after the tested finished and the container deleted, the volume was still in the disk and I needed to use
docker system prune
for deleted them.To Reproduce
Steps to reproduce the behavior:
docker volume ls -f dangling=true
and see the unused volumes
I tried to override the dispose method in the container class I created but the details of the containers and the used volumes are private and I couldn't access it for calling the remove after the docker removed.
also I could use your docker api client since its internal so anyway I need to do the system call separately.
there is other way to do it, by calling the container remove with the flag
-v
that delete the unnamed volumes with it (only unnamed volumes, I'm not sure what kind of volumes you using)Desktop (please complete the following information):
Engine:
Version: 19.03.5
The text was updated successfully, but these errors were encountered: