Fix docker load progressbar, fixes #21957#21959
Conversation
|
@bboreham can you check if this can fix your issue? I tryed on local |
There was a problem hiding this comment.
format := progressOutput != nil ?
|
I don't want to seem ungrateful, but are you sure that the correct course of action is to edit the one place where this one message is generated? Surely it needs a more general mechanism by which messages may be output in the appropriate context and fed through to the other end. I'm not set up to build Docker right now so it will take me a while to be able to test it. |
|
@bboreham |
b47eb0e to
4cc43fd
Compare
|
@bboreham I update the fix to address your concern -:) |
|
@coolljt0725 i wonder if we could add a test somehow (unit test?) |
|
@tiborvass I'll try |
|
I made an easier repro - #21957 (comment) Building docker from your branch coolljt0725:fix_21957 works fine with matched client and daemon: strace shows it sending valid JSON: but when called from a 1.10.3 client I get: strace shows: |
6a9abaa to
bbd0816
Compare
|
@bboreham really thank you for your testing :-) |
|
I tested 4cc43fdbcafbaab3c3ef98293fa3d70393805078 - doesn't look too different from the current. |
|
@bboreham the commit you tested is old, I just updated the fix |
|
OK, I tested bbd0816d674792501072b795fb8e8afde04192c4, and it cures the error message. Daemon is still sending an empty payload on re-load as noted at #21957 (comment) |
|
LGTM |
|
@tiborvass I made a update, make the the |
|
Re LGTM |
Signed-off-by: Lei Jitang <[email protected]>
|
LGTM |
- What I did
fixes #21957
- How I did it
- How to verify it
- A picture of a cute animal (not mandatory but encouraged)
Signed-off-by: Lei Jitang [email protected]