Skip to content

cloud-provider-kind does not respect KIND_EXPERIMENTAL_PROVIDER=podman if Docker is installed #404

@avosepp

Description

@avosepp

Hello All,

Trying to run a Kind cluster with Podman on the latest MacOS today and came across this.

E0504 12:22:31.375083   26245 controller.go:71] "Error listing clusters, retrying..." err="failed to list clusters: command \"docker ps -a --filter label=io.x-k8s.kind.cluster --format '{{.Label \"io.x-k8s.kind.cluster\"}}'\" failed with error: exit status 1"

This failure occurs when trying to run cloud-provider-kind. I have alias docker=podman and the KIND_EXPERIMENTAL_PROVIDER=podman env var in both my shell and the sudo shell. cloud-provider-kind was still attempting to use Docker and erroring with the above error.

I ran across #242 where @colinjlacy pointed out that completely uninstalling Docker from their machine resolved the issue. I tested the same on my machine and was able to verify. After Docker was removed, my machine began to respect the KIND_EXPERIMENTAL_PROVIDER=podman env var.

It seems like in the code somewhere the check of Docker being installed is overriding the env var or even the alias.

I think it's reasonable for a user to have both Docker and Podman installed on their machine. It's a little difficult to troubleshoot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions