Rancher Desktop -- use images created locally
Daniel Nashed – 14 April 2022 21:57:40
This took me a while to figure it out, because the error message wasn't clear. I am building my image on Rancher Desktop and I am trying to use it on Rancher Desktop on the same machine.
Rancher Desktop was always trying to pull the image and returned an error, because it could not find the image in any registry.
The trick here is to set imagePullPolicy: Never
With this setting always the local image is used and you are responsible for updating it on your own.
In my case I am using the Docker run-time, which is easier to use to build images.
-- Daniel
apiVersion: v1
kind: Pod
metadata:
name: foo
spec:
containers:
- name: foo
image: foo
imagePullPolicy: Never
- Comments [1]