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

FEATURE REQUEST: Add Json Output file #508

Open
Trubador opened this issue Feb 16, 2024 · 4 comments
Open

FEATURE REQUEST: Add Json Output file #508

Trubador opened this issue Feb 16, 2024 · 4 comments
Labels
enhancement Add a new feature

Comments

@Trubador
Copy link

What would you like to be added:

I would like to get Dive to output a Json file containing all the analyzed data from the Docker Image:

  • Layers & Layer contents & Layer details
  • Image details
  • Metadata
  • Metrics such as wasted space
  • Stats
  • Etc.

Why is this needed:

I would like to generate an automatic diagram based on the data from the Json file such that I can easily view the structure of a deployed container image.

Additional context:

@Trubador Trubador added the enhancement Add a new feature label Feb 16, 2024
@Trubador Trubador changed the title FEATURE REQUEST FEATURE REQUEST: Add Json Output file Feb 16, 2024
@mark2185
Copy link
Contributor

So, something like dive <image> --json output_file.json?

@Trubador
Copy link
Author

Trubador commented Feb 16, 2024

Yes, that would be perfect! 😃
Especially if the Json structure is also documented such that I can easily understand it.

@mark2185
Copy link
Contributor

Try it out, it's already there!

@Trubador
Copy link
Author

Oh sorry about that, I can see that.
I just tried it now, though It only output a subset of the data Dive displays in terminal GUI. I need all the data from that in the Json file as well so I have a complete detailed representation of all relations and files inside image layers

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

No branches or pull requests

2 participants