<p>I have a dozen of cron jobs on GKE. My docker registry is down. The status of these cron jobs becomes: <code>ImagePullBackOff</code></p>

<p>My thinking is, the cron jobs should pull the docker image once after deploying and use the cached/local docker image.</p>

<p>Shouldn't pull the docker image every time from remote docker registry when the cron job creates a new pod. It's a waste, because the docker image doesn't change (I mean the application code of cron job).</p>

<p>So, is there a way to do this?</p>

<p>Purpose: if can do this, my cron jobs will always running using local docker image before next deploying, even if docker registry is down.</p>

Lin Du
<p>you can use one of the "<strong>Container Images" properties</strong> mentioned <a href="https://kubernetes.io/docs/concepts/configuration/overview/#container-images" rel="nofollow noreferrer">here</a>.</p>

<p>Please setup in your deployment: <code>imagePullPolicy: IfNotPresent</code>.</p>

<p>Note:</p>

<blockquote>
  <p>if imagePullPolicy is omitted and either the image tag is :latest or it is omitted: Always is applied.</p>
</blockquote>

<p>Please verify your deployment settings and verify also if docker images are present on the machine.</p>
