-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fix Internal Error with docker 25.0.0 #33
Conversation
src/lib/ydocker/changes_dialog.rb
Outdated
@@ -1,3 +1,5 @@ | |||
# frozen_string_literal: true |
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.
are you sure that it is safe to add it to files? I usually avoids this as it can lead to some nasty bugs.
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.
Ah, good point. I did think about that, then ran the module and clicked around and thought it was OK... so I included this.
But now I realize the test/
directory has only a useless spec helper 😱
So I will omit this and use the usual way in yast repos (which I did not realize before)
Style/FrozenStringLiteralComment:
Enabled: false
because it can break working code and this package has actually no tests 😱
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.
@mvidner, thanks for taking care 👍
LGTM
✔️ Internal Jenkins job #3 successfully finished |
Problem
Since Docker 25.0.0, starting
yast2 docker
just pops up an Internal Error (unless you have no images at all)https://docs.docker.com/engine/api/v1.45/#tag/Image/operation/ImageList says for VirtualSize
Solution
So we need to fix yast2-docker to use
image.info["Size"]
insteadTesting
Tested manually that the fix works with older Docker (on Leap 15.4 with 24.0.7)