1
0

Add a flag to set the container runtime binary

This commit is contained in:
2023-04-07 18:57:18 +00:00
parent e35e030c54
commit 9e55ebd44e
3 changed files with 28 additions and 5 deletions

View File

@ -262,7 +262,8 @@ func generateBaseDockerImage(registry string, commands []config.DockerCommand,
d := "# BASE\n"
cmd := exec.Command("docker", "images", "-q", sk.DockerName())
// TODO move as function to container.go
cmd := exec.Command(containerRuntime, "images", "-q", sk.DockerName())
log.Debug().Msgf("run %v", cmd)
rawOutput, err := cmd.CombinedOutput()