-
Notifications
You must be signed in to change notification settings - Fork 522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better management of Volumes #2054
Comments
Should look to see if there are commands we could use to highlight/select tree nodes. |
Unfortunately, I don't think this is actionable.
The best we could possibly do is monkey patch the containers using a volume into the volume's inspect data, but the user experience is mediocre and I'm not sure it justifies the amount of work it would take. Additionally, it may cause user confusion when they see this information in our inspect info but never see it when doing |
Duping this to #2538. |
[This came from PaulY]
First, the challenge:
I have a lot of volumes. I think most are orphaned junk I should clean up but using our commands or inspect I see no useful information. What I really want to know is which container is using a volume, if any.
The Docker command that solves this is as follows where volume could be the name or the mountpoint inspect tells you:
$ docker ps -a --filter volume=c4be1fa31accf8c43de23adacc2542c7af14ee8e60048cd9fe0b3900eda00261
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
12d0ecc421bb mariadb "docker-entrypoint.s…" 6 weeks ago Up 5 hours (healthy) 0.0.0.0:3306->3306/tcp mariadb
Ah ha, it's mariadb container that is using it -- and I should not delete it.
In the docker explorer, it would be really cool if containers just let you find mounted volumes. And also if volumes could show their dependent containers.
Here is a somewhat related issue from the past - #1209
The text was updated successfully, but these errors were encountered: