-
Notifications
You must be signed in to change notification settings - Fork 59
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/info use format JSON #1008
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, thanks! But I think some comments would be super helpful.
7b42af5
to
afacb29
Compare
- use host CPU from Host property if available - this allows to use podman
Docker doesn't have format=json, but we can use Go template {{ json .}} for both podman and docker |
It does, no?
|
Hm, my colleague tried it and it output just His docker version output:
Maybe old version? https://docs.docker.com/go/formatting/ here is no reference to |
If it's version dependent, then this would be a breaking change, I guess, right? |
With |
Yeah, that works. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, docker still works on my machine. Thanks!
This partially fix #855
Test plan
I have run unit tests.
Also tried it locally with my podman.
Still getting some error regarding volumes and tmp files. But that seems more related to podman itself probably.
I need someone to test it also with docker. If it's still work.