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 inspect [prop ...] #2915

Closed
tj opened this issue Nov 27, 2013 · 4 comments
Closed

docker inspect [prop ...] #2915

tj opened this issue Nov 27, 2013 · 4 comments

Comments

@tj
Copy link

tj commented Nov 27, 2013

similar to #734, but it would help shell scripting primarily (since everything else has nice json parsing readily available usually) to allow something like:

$ sudo docker inspect e5225051a6dc NetworkSettings IPAddress

understandable if it's out of scope, especially with inspect accepting multiple names

@tianon
Copy link
Member

tianon commented Nov 27, 2013

I think a new inspect flag (again similar to what's proposed in #734) providing syntax similar to jq's would probably be more flexible and easier for non-Go-writing users to understand than the extremely low-hanging fruit in #734, while also satisfying this one pretty reasonably.

/cc @jpetazzo (because this would be even better than just directly "embedding" jq)

@tj
Copy link
Author

tj commented Nov 27, 2013

IMO even jq does way too much but I guess it depends on the use case. As far as shell scripting goes most of the stuff in jq wouldn't be too useful, and otherwise you have JSON.parse or similar at your disposal in most languages. Personally I think just access to the first container's props via simple dot notation or similar would be ok, but I would see how that might feel incomplete for some people

@jpetazzo
Copy link
Contributor

jpetazzo commented Dec 1, 2013

Don't involve me in UX questions; I suck at that stuff :-)
(But I'm cross-referencing #2921 anyway!)

@crosbymichael
Copy link
Contributor

We implemented docker inspect -format="{{.NetworkSettings.IPAddress }}" ID for generic filtering of properties.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants