1
0
mirror of https://github.com/docker/cli.git synced 2026-01-13 18:22:35 +03:00

Add tracking to elided layer pulls.

Signed-off-by: Matt Moore <mattmoor@google.com>
Upstream-commit: d5482089bfd0348ed886be9f89c4d6b177cc6dce
Component: engine
This commit is contained in:
Matt Moore
2017-01-31 16:36:17 -08:00
parent 5f6c6d709f
commit b79ceebd76

View File

@@ -126,6 +126,11 @@ func (ldm *LayerDownloadManager) Download(ctx context.Context, initialRootFS ima
topLayer = l
missingLayer = false
rootFS.Append(diffID)
// Register this repository as a source of this layer.
withRegistered, hasRegistered := descriptor.(DownloadDescriptorWithRegistered)
if hasRegistered {
withRegistered.Registered(diffID)
}
continue
}
}