https://rancher.com/ logo
#rancher-desktop
Title
# rancher-desktop
a

adamant-kite-43734

07/20/2022, 9:47 AM
This message was deleted.
m

mysterious-crayon-60878

07/20/2022, 2:50 PM
This is the exact issue I was running into yesterday. I think @kind-iron-72902 indicated that some kind of external registry has to be used. I am starting to experiment with that now.
f

fast-garage-66093

07/21/2022, 11:23 PM
@best-accountant-68201 Is this a known issue with
nerdctl
, or is this supposed to work?
b

best-accountant-68201

07/21/2022, 11:26 PM
That needs configuring buildkitd to use containerd worker
buildkitd --oci-worker=false --containerd-worker=true
f

fast-garage-66093

07/21/2022, 11:29 PM
Hmm, we are supposedly doing that already:
Copy code
buildkitd_opts="--addr=unix:///run/buildkit/buildkitd.sock --containerd-worker=true --containerd-worker-addr=/run/k3s/containerd/containerd.sock --containerd-worker-gc --oci-worker=false"
b

best-accountant-68201

07/21/2022, 11:30 PM
The containerd namespace has to match too
It is “buildkitd” by default
Ideally it should be set to “k8s.io” maybe, but it is reported that kubelet may wipe “unused” images, so probably it should be set to “default” and call it a day
f

fast-garage-66093

07/21/2022, 11:33 PM
Yes, kubelet does garbage collection of unused images once some threshold is reached: https://kubernetes.io/docs/concepts/architecture/garbage-collection/#container-image-lifecycle
Is there a way to set the namespace from the commandline, or only via
buildkitd.toml
?
b

best-accountant-68201

07/21/2022, 11:35 PM
only via toml IIRC
f

fast-garage-66093

07/22/2022, 12:00 AM
@calm-application-66065 I've updated your Github issue on macOS using containerd, nerdctl build can not use local base images · Issue #2584 · rancher-sandbox/rancher-desktop with the information from this thread, but there isn't anything simple you can do right now to get it to work. It is also too late to get any non-critical bug fixes into the upcoming release, so this will have to wait a little longer. For the meantime setting up a local registry is probably the best workaround.
@best-accountant-68201 I'm somewhat confused as I don't see us running the
buildkitd
by default, so I guess
nerdctl
is spinning it up on-demand? In which case it won't be using the
/etc/conf/buildkitd.conf
settings, right?
Sorry I'm a bit scatter-brained, as I'm trying to debug 2 other issues right now
c

calm-application-66065

07/22/2022, 9:37 AM
How can I set those options in rancher desktop on macOS? I see no buildkitd.toml file.
If I can somehow change the buildkitd namespace on macOS, that would already be fine, if it will be fixed in an upcoming rancherdesktop release, even better.
Does buildkitd on macOS run in a container?
So does anyone have a suggestion how to edit buildkitd.toml on macOS?
13 Views