Add version check
Signed-off-by: Michael Winters <1688867+mwinters0@users.noreply.github.com>
This commit is contained in:
parent
222de0e0bf
commit
f7280c4cd2
|
|
@ -464,10 +464,12 @@ func createContainer(container, image, release, authFile string, showCommandToEn
|
|||
"--volume", runtimeDirectoryMountArg,
|
||||
}...)
|
||||
|
||||
if runtime, _ := podman.GetRuntimeName(); runtime == "crun" {
|
||||
createArgs = append(createArgs, []string{
|
||||
"--group-add", "keep-groups",
|
||||
}...)
|
||||
if podman.CheckVersion("3.2.0") {
|
||||
if runtime, _ := podman.GetRuntimeName(); runtime == "crun" {
|
||||
createArgs = append(createArgs, []string{
|
||||
"--group-add", "keep-groups",
|
||||
}...)
|
||||
}
|
||||
}
|
||||
|
||||
createArgs = append(createArgs, avahiSocketMount...)
|
||||
|
|
|
|||
Loading…
Reference in New Issue