Skip to content

Commit 14df52b

Browse files
committed
c8d/pull: Don't emit Downloading with 0 progress
To align with the graphdrivers behavior and don't send unnecessary progress messages. Signed-off-by: Paweł Gronowski <[email protected]>
1 parent ff5f780 commit 14df52b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

daemon/containerd/progress.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ func (p pullProgress) UpdateProgress(ctx context.Context, ongoing *jobs, out pro
135135
}
136136
key := remotes.MakeRefKey(ctx, j)
137137
if info, ok := pulling[key]; ok {
138+
if info.Offset == 0 {
139+
continue
140+
}
138141
out.WriteProgress(progress.Progress{
139142
ID: stringid.TruncateID(j.Digest.Encoded()),
140143
Action: "Downloading",

0 commit comments

Comments
 (0)