Skip to content
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

docker volume inspect does not show volume options #25545

Closed
pdevine opened this issue Aug 9, 2016 · 4 comments · Fixed by #26671
Closed

docker volume inspect does not show volume options #25545

pdevine opened this issue Aug 9, 2016 · 4 comments · Fixed by #26671
Labels
area/volumes kind/enhancement Enhancements are not bugs or new features but can improve usability or performance.

Comments

@pdevine
Copy link

pdevine commented Aug 9, 2016

If you create a volume with options, docker inspect doesn't output any of the information, making it difficult to determine how a volume was created.

Here's the current output:
[ { "Name": "foo", "Driver": "local", "Mountpoint": "/var/lib/docker/volumes/foo/_data", "Labels": {} } ]

I would expect another "Options" key which has a value like {"": "", ...} for each of the options specified.

@thaJeztah thaJeztah added the kind/enhancement Enhancements are not bugs or new features but can improve usability or performance. label Aug 9, 2016
@thaJeztah
Copy link
Member

/cc @cpuguy83

@pdevine
Copy link
Author

pdevine commented Sep 16, 2016

Any love for this issue? @cpuguy83

@cpuguy83
Copy link
Member

Just requires persisting options in the volume db so we can retrieve them along with labels.
Feel free to make a patch, should be fairly straight forward.

@yongtang
Copy link
Member

Added a pull request #26671 to show options in docker volume inspect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/volumes kind/enhancement Enhancements are not bugs or new features but can improve usability or performance.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants