Support for nerdctl & local cluster check for rancher-desktop
Issue
rancher-desktop has become a very popular and simple to use desktop development client for developers to adopt, it would be very convenient if it were also a first class citizen for skaffold tooling!
Expected behavior
https://skaffold.dev/docs/environment/local-cluster/
performs the same as minikube or docker-desktop
Actual behavior
builds and deploys fail due to registry authentication issues and must be countered with esoteric dockerCLI configuration as nerdctl is not yet supported.
Information
build:
local:
push: false
useDockerCLI: true
This is not currently a high priority for team. Happy to see community contributions!
It looks like scaffold is really married to Docker, and there is no quick way to change the code without some significant refactoring. My work-around to this is to run run Docker in a container ;)
nerdctl run --privileged --name dind -d -v /var/run/dind:/var/run docker:dind
and then DOCKER_HOST=unix:///var/run/dind/docker.sock skaffold build
There are probably ways to improve it, and e.g. mount containerd socket into the dockerd container, but the above works to unblock using skaffold.