add created by label for podman

pull/12627/head
Steven Powell 2021-09-29 13:47:59 -07:00
parent a502d3e2e1
commit dafbe6aac3
2 changed files with 2 additions and 4 deletions

View File

@ -123,10 +123,8 @@ func tryCreateDockerNetwork(ociBin string, subnet *network.Parameters, mtu int,
args = append(args, "-o")
args = append(args, fmt.Sprintf("com.docker.network.driver.mtu=%d", mtu))
}
args = append(args, fmt.Sprintf("--label=%s=%s", CreatedByLabelKey, "true"))
}
args = append(args, name)
args = append(args, fmt.Sprintf("--label=%s=%s", CreatedByLabelKey, "true"), name)
rr, err := runCmd(exec.Command(ociBin, args...))
if err != nil {

View File

@ -28,7 +28,7 @@ import (
"k8s.io/minikube/pkg/minikube/style"
)
// PossibleLeftOvers deletes KIC & non-KIC drivers left
// PossibleLeftOvers deletes KIC driver left overs
func PossibleLeftOvers(ctx context.Context, cname string, driverName string) {
bin := ""
switch driverName {