mirror of
https://github.com/mudler/luet.git
synced 2025-08-31 23:02:16 +00:00
Extract all layers of the docker image
This commit is contained in:
@@ -162,11 +162,10 @@ func (*SimpleDocker) ExtractRootfs(opts compiler.CompilerBackendOptions, keepPer
|
||||
|
||||
layers_sha := []string{}
|
||||
|
||||
if len(manifestData) != 1 {
|
||||
return errors.New("Manifest should have one entry")
|
||||
}
|
||||
for _, l := range manifestData[0].Layers {
|
||||
layers_sha = append(layers_sha, strings.Replace(l, "/layer.tar", "", -1))
|
||||
for _, data := range manifestData {
|
||||
for _, l := range data.Layers {
|
||||
layers_sha = append(layers_sha, strings.Replace(l, "/layer.tar", "", -1))
|
||||
}
|
||||
}
|
||||
|
||||
export, err := capi.CreateExport(rootfs)
|
||||
|
Reference in New Issue
Block a user