https://rancher.com/ logo
Title
p

proud-parrot-81193

04/03/2023, 3:03 PM
I've tried the new
rancher-desktop
and I've built the image again
nerdctl build -t arkanmgerges/fe-softwaredev-expert:0.1.0 -f docker/dockerfile-local .
then I tried first install it with helm, but I got a problem that the image couldn't be pulled (locally)
w

white-xylophone-9961

04/03/2023, 5:35 PM
I think what you need is a local registry mirror on the rancher desktop instance.
limactl shell <instance>
    sudo -i
    cat <<EOF > /etc/rancher/k3s/registries.yaml
    mirrors:
      localhost:
        endpoint:
          - "<http://localhost:5000>"
    EOF
I use dockerd, so can't speak on nerdctl. I created a ~/Docker-Storage directory to contain pushed images.
docker run -d --restart=always -p "127.0.0.1:5001:5000"
-v ~/Docker-Storage:/var/lib/registry --name registry registry
Then for images to be accessible, you tag to localhost:5001 and push there. But, image locations in charts or variable files will need to point to this localhost:5001.
p

proud-parrot-81193

04/03/2023, 6:23 PM
The pull was resolved by adding --namespace k8s.io to the nerdctl build https://rancher-users.slack.com/archives/C0200L1N1MM/p1680534667981599
I did not have any problem with Docker Desktop
but I have problem now with port forward with rancher desktop