1
0

podman --squash-all requires --layers to cache intermediate layers

This commit is contained in:
dump_stack() 2023-02-11 14:47:43 +00:00
parent fb5b2a2bbb
commit b1493b79a3
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -98,7 +98,7 @@ func (cmd *KernelDockerRegenCmd) Run(kernelCmd *KernelCmd, g *Globals) (err erro
args := []string{"build"}
if dockerIsPodman() {
args = append(args, "--squash-all")
args = append(args, "--layers", "--squash-all")
}
args = append(args, "-t", d.ContainerName, imagePath)
@ -353,7 +353,7 @@ func generateBaseDockerImage(registry string, commands []config.DockerCommand,
args := []string{"build"}
if dockerIsPodman() {
args = append(args, "--squash-all")
args = append(args, "--layers", "--squash-all")
}
args = append(args, "-t", sk.DockerName(), imagePath)
@ -426,7 +426,7 @@ func dockerImageAppend(sk config.KernelMask, pkgname string) (err error) {
args := []string{"build"}
if dockerIsPodman() {
args = append(args, "--squash-all")
args = append(args, "--layers", "--squash-all")
}
args = append(args, "-t", sk.DockerName(), imagePath)