mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add tracking to elided layer pulls.
Signed-off-by: Matt Moore <mattmoor@google.com>
This commit is contained in:
parent
052f593530
commit
d5482089bf
1 changed files with 5 additions and 0 deletions
|
@ -126,6 +126,11 @@ func (ldm *LayerDownloadManager) Download(ctx context.Context, initialRootFS ima
|
||||||
topLayer = l
|
topLayer = l
|
||||||
missingLayer = false
|
missingLayer = false
|
||||||
rootFS.Append(diffID)
|
rootFS.Append(diffID)
|
||||||
|
// Register this repository as a source of this layer.
|
||||||
|
withRegistered, hasRegistered := descriptor.(DownloadDescriptorWithRegistered)
|
||||||
|
if hasRegistered {
|
||||||
|
withRegistered.Registered(diffID)
|
||||||
|
}
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue