mirror of
https://github.com/containers/skopeo.git
synced 2025-08-06 09:03:54 +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
|
return err
|
||||||
}
|
}
|
||||||
if len(layers) == 0 {
|
if len(layers) == 0 {
|
||||||
layers = m.GetLayers()
|
layers = uniqueLayerDigests(m)
|
||||||
}
|
}
|
||||||
for _, l := range layers {
|
for _, l := range layers {
|
||||||
if !strings.HasPrefix(l, "sha256:") {
|
if !strings.HasPrefix(l, "sha256:") {
|
||||||
|
Loading…
Reference in New Issue
Block a user