skaffold icon indicating copy to clipboard operation
skaffold copied to clipboard

Support for nerdctl & local cluster check for rancher-desktop

Open Kampe opened this issue 3 years ago • 2 comments

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

Kampe avatar Sep 02 '22 17:09 Kampe

This is not currently a high priority for team. Happy to see community contributions!

tejal29 avatar Nov 21 '22 19:11 tejal29

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.

errordeveloper avatar Aug 21 '24 14:08 errordeveloper