mirror of
https://github.com/mudler/luet.git
synced 2025-09-02 15:54:39 +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{}
|
layers_sha := []string{}
|
||||||
|
|
||||||
if len(manifestData) != 1 {
|
for _, data := range manifestData {
|
||||||
return errors.New("Manifest should have one entry")
|
for _, l := range data.Layers {
|
||||||
}
|
layers_sha = append(layers_sha, strings.Replace(l, "/layer.tar", "", -1))
|
||||||
for _, l := range manifestData[0].Layers {
|
}
|
||||||
layers_sha = append(layers_sha, strings.Replace(l, "/layer.tar", "", -1))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export, err := capi.CreateExport(rootfs)
|
export, err := capi.CreateExport(rootfs)
|
||||||
|
Reference in New Issue
Block a user