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

Add option for JSON output #26

Open
relet opened this issue Jun 6, 2016 · 2 comments
Open

Add option for JSON output #26

relet opened this issue Jun 6, 2016 · 2 comments

Comments

@relet
Copy link

relet commented Jun 6, 2016

The current code offers --dot format and --tree format output.
I think a more machine readable output as a JSON dictionary tree could be useful for automatic processing.

@justone
Copy link
Owner

justone commented Jun 14, 2016

Interesting idea.

What did you have in mind for the JSON format? Should it be hierarchical like --tree or just express relationships between images? And how would this be different from the GET /images/json API?

Thanks.

@relet
Copy link
Author

relet commented Jun 14, 2016

I have a relatively specific task in mind, which I did implement using some of the same steps dockviz takes. (Calculating the additional installation size of a container by comparing it to the layers that already are on the system)

I think, in general the hierarchy and relative layer sizes is what makes dockviz most interesting. What you don't get from /images/json are the layer sizes. When using the API directly you have to take the extra steps of calculating checksums to recreate the hierarchy if you want to use the layer history.

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

2 participants