Open hardlycharred opened 4 months ago
The documentation is incorrect. Rancher Desktop no longer uses containerd
from k3s
but always configures its own version (so even older versions of k3s
run with the latest version of containerd
).
That means the registries.yaml
feature of k3s
has no effect and Rancher Desktop needs to provide its own mechanism to configure private registries.
Any update? This breaks offline use or usage with proxies.
Actual Behavior
Private registry configuration does not seem to be applied using either
moby
orcontainerd
backends. The override successfully creates the config file at/etc/rancher/k3s/registries.yaml
, but the configuration seems to have no effect.Steps to Reproduce
Per the override documentation here and k3s private registry documentation here:
~/.local/share/rancher-desktop/lima/_config/override.yaml
with contents like below:kubectl run --image caddy:2.7 caddy
,kubectl run --image docker.io/caddy:2.7 caddy
, orkubectl run --image docker.io/library/caddy:2.7 caddy
Result
Pod fails with
ImagePullBackoff
andmanifest for caddy:2.7 not found
.Expected Behavior
Images pulled within the cluster with the tag prefix
docker.io/$TAG
should instead pullartifactory.<domain>/docker-internal/docker.io/$TAG
Additional Information
docker.io
domain internally that points to a separate repository that does not containcaddy:2.7
. Pulling images from the repository atdocker.io
works, but this is not the desired behavior.k3s v1.29.4+k3s1
(e.g. ones installed manually)/etc/containerd/certs.d
populated with a directory andhosts.toml
for each repository (e.g.docker.io
,quay.io
). The instance provisioned by Rancher Desktop does not, regardless of usingmoby
orcontainerd
runtimes.Rancher Desktop Version
1.13.1
Rancher Desktop K8s Version
1.29.4
Which container engine are you using?
moby (docker cli)
What operating system are you using?
Ubuntu
Operating System / Build Version
Ubuntu 22.04
What CPU architecture are you using?
x64
Linux only: what package format did you use to install Rancher Desktop?
deb
Windows User Only
No response