mirror of
https://github.com/containers/skopeo.git
synced 2025-04-27 11:01:18 +00:00
Only copy each layer once in (skopeo layers)
... using the new uniqueLayerDigests().
This commit is contained in:
parent
a23befcbf4
commit
5b1ca76131
@ -223,7 +223,7 @@ func (i *genericImage) LayersCommand(layers ...string) error {
|
||||
return err
|
||||
}
|
||||
if len(layers) == 0 {
|
||||
layers = m.GetLayers()
|
||||
layers = uniqueLayerDigests(m)
|
||||
}
|
||||
for _, l := range layers {
|
||||
if !strings.HasPrefix(l, "sha256:") {
|
||||
|
Loading…
Reference in New Issue
Block a user