-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Bollard failing to parse docker system df
JSON
#78
Comments
Shoot. I was afraid something like this would happen with Bollard. I'll revert that PR tonight. Would you mind filing this bug with Bollard? If they fix it on their end, we can bring it back. |
Thank you for reporting this BTW! The weird thing is... "it works on my machine" |
Just adding a bit more info: think the blame rests on Docker itself, because their API docs seem to be literally lying lol: https://docs.docker.com/engine/api/v1.40/#operation/SystemDataUsage ^ that claims BuildCache objects use Integers for their CreatedAt dates |
Interesting. The weird thing is that on my machine I actually get an |
That's very interesting. I looked at the code and it looks like it always uses the default handling of outputing an RFC 3339 string. |
Thanks @mdonoughe for reporting the issue upstream! |
Thanks for handling this @stepchowfun @mdonoughe ! Looks like the inability to reproduce is due to my use of BuildKit. I should have known that would come back to bite me one day haha! |
I'm quite glad you had BuildKit enabled and discovered this! We should test with BuildKit both enabled and disabled as part of our release process. |
Description
I'm getting this error when running docuum from source:
It's errorring on this bit of JSON (obtained by running
curl --unix-socket /var/run/docker.sock http:/v1.40/system/df | jq | less
)I worry this might be a bollard bug where it doesn't expect some docker objects to still be reporting dates in iso8601 format.
Instructions to reproduce the bug
Ensure matching versions of docker, OS, docuum. Then:
System information:
Additional context
Looks like starting bollard with
Docker::connect_with_local_defaults()
means it will try to use API version 1.40: https://docs.rs/bollard/0.7.1/src/bollard/docker.rs.html#72-75Maybe we could experiment with an older API version. Or maybe docker just doesn't properly display old entries and I just need to do a
docker system prune
. Or we may just need to send this bug report to the bollard devs.The text was updated successfully, but these errors were encountered: