<p>I created an AWS AMI with docker and my image preloaded (docker image is 7 gigs and it takes too long to download from private registry). I am using Rancher and have set my node template to use this ami. When I run my</p>

<pre><code>kubectl create -f command
</code></pre>

<p>I get the error that the image is not present and I don't have pull permissions. When I then ssh into the EC2 node and run</p>

<pre><code>docker images
</code></pre>

<p>Only Rancher images show up. I know that the docker file is present with the AMI as I have launched separate instances outside of Kubernetes and have proved to myself that the docker image is present. I notice when spinning up the cluster through the Rancher UI that it appears that Docker is being reinstalled on the nodes which I believe is removing the docker image.</p>

magladde
<p>When you say <code>ssh into the EC2 instance</code>, I believe you checked in the node where the pod is running and not in the master.</p>

<p>Also kindly check if the image pull policy is set to <code>Never</code> or <code>IfNotPresent</code> in your yaml file.</p>

<pre><code>imagePullPolicy: Never
</code></pre>
