From d3ee7399eb06142f86abc34cb91665ee27c56b68 Mon Sep 17 00:00:00 2001 From: Dimitar Dimitrov Date: Mon, 16 Feb 2026 00:04:57 +0200 Subject: [PATCH] fix: support image push when using Rancher Desktop locally (#251) Rancher Desktop is a free alternative to Docker Desktop (which prohibits commercial use) and has gained significant popularity. When running Rancher Desktop on non-native Docker platforms such as macOS and Windows, the secondary tunnel from the host OS to the Docker's Linux machine is necessary. At the moment, the check for this seems to be based on the vhost name of the docker engine's VM. For Rancher Desktop it seemms to be `lima-rancher-desktop`: $ docker info --format 'json' | jq .Name This might not be the best approach but is simple and should save a lot of headaches for a lot of people until a potentially better solution is devised. See also: https://github.com/psviderski/unregistry/issues/62 --- pkg/client/image.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/client/image.go b/pkg/client/image.go index c11d9fc6..e31e7526 100644 --- a/pkg/client/image.go +++ b/pkg/client/image.go @@ -370,7 +370,7 @@ func isDockerVirtualised(ctx context.Context, dockerCli *docker.Client) (bool, e return false, fmt.Errorf("get Docker info: %w", err) } - virtualisedHostnames := []string{"docker-desktop", "colima"} + virtualisedHostnames := []string{"docker-desktop", "colima", "lima-rancher-desktop"} for _, name := range virtualisedHostnames { if strings.Contains(strings.ToLower(info.Name), name) { return true, nil