From 741924384ee7a617af1a0275e2dc674e86b9d0d9 Mon Sep 17 00:00:00 2001 From: Aaron Lehmann Date: Mon, 7 Dec 2015 10:59:59 -0800 Subject: [PATCH] Use DiffSize instead of Size in v1 push The v1 push code was querying the size of the layer chain up to the layer it was pushing, rather than just that layer. This made the progress indicator inaccurate. Signed-off-by: Aaron Lehmann --- distribution/push_v1.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)