diff --git a/distribution/push_v1.go b/distribution/push_v1.go index 9e1a09cfbf..a4a0de0811 100644 --- a/distribution/push_v1.go +++ b/distribution/push_v1.go @@ -432,7 +432,7 @@ func (p *v1Pusher) pushImage(v1Image v1Image, ep string) (checksum string, err e defer arch.Close() // don't care if this fails; best effort - size, _ := l.Size() + size, _ := l.DiffSize() // Send the layer logrus.Debugf("rendered layer for %s of [%d] size", v1ID, size)