Closed giulianisanches closed 2 days ago
Quickstart has a dependency on Docker right now as we run a few docker
commands under the hood.
In theory (I haven't tested this, but it could work), an alias docker=podman
may be able to get around that. Or if you'd be interested in submitting a fix to make quickstart more agnostic on docker/podman, a PR would be very welcome :smile:
I will fork the repository and try to figure out what's going on and see if i'm able to open a PR for this ;)
Awesome!
These are the main places where we'd need a docker alternative:
Maybe something as simple as a function to figure out whether docker/podman is running on the user's system, then setting a variable for it, and then using that variable in the various exec commands...
Just to keep some history here, using alias is a little bit tricky, as we can see here.
Summarizing:
exec.Command("docker", "stats", "--no-stream")
).shopt -s expand_aliases
alias=
you create a function: function docker() { podman $@ }
( i have tested this and it works ).Anyway, playing around the kind.go
code to create a fix in the plugin itself :)
Has anyone considered using ko-build
here?
@giulianisanches I have installed the podman-docker
package on my fedora, which creates a symbolic link to the podman
binary.
I am however able to create a kind
cluster with latest (I tried only local build) of the quickstart.
@psschwei my PR 525 helped w/ the creation of the registry - which is a bit different from docker VS podman perspective
I also ran into similar issues when deploying kind on podman in a fresh install MacOS sequoia. I created a PR that removes the docker-cli dependency altogether and replaces it with the Docker API Go Client which worked for me without a hitch.
Hello,
I'm trying to use the quickstart plugin to get knative running and learn more about this tool.
I have podman 4.4.4 installed. The podman machine is running and I'm able to create a kind cluster running
kind create cluster
:But when I try to run the command
kn quickstart kind
, i get the following error:This is the S.O. version for the podman machine: