<p>I'm traying to create a Pod from a docker private image. For this i have created a secret like this: </p>

<pre><code>kubectl create secret docker-registry $SECRETNAME --docker-server=$DOCKER_REGISTRY_SERVER --docker-username=$DOCKER_USER --docker-password=$DOCKER_PASSWORD --docker-email=$DOCKER_EMAIL
</code></pre>

<p>and then in the pod yml file, </p>

<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: website.com
  labels: 
    app: website
spec:
  containers:
  - name: my-web
    image: company/web:1.0.2
    imagePullPolicy: Always
    command: [ "echo", "SUCCESS" ]
    ports:
    - name: web-port
      containerPort: 8080
  imagePullSecrets:
    - name: docker-hub-key
</code></pre>

<p>When I run "kubectl create -f web-pod.yml", and then I run "kubectl get pod website.com" I get the following error:</p>

<ul>
<li>Failed to pull image "company/web:1.0.2": rpc error: code = Unknown desc = Error response from daemon: repository company/web not found: does not exist or no pull access</li>
<li>Back-off pulling image "company/web:1.0.2"</li>
</ul>

<p>Please help,
thanks in advance</p>

<p>Since the fail is at the initial stage, this is probably an issue with authentication or repository-(image/tags access).
Please verify that the repository name is valid and that the image version specified is available in the repository.</p>

<p>If all has been verified and the issue still persists, try do the following:</p>

<ul>
<li>Restart docker service daemon</li>
<li>Check to confirm that the secret provided for the repo is valid</li>
<li><p>Try pull the image using kubectl command like below:</p>

<p><code>$ kubectl run &lt;deployment-name&gt; --image=&lt;repo&gt;/&lt;image&gt;:&lt;version&gt; --port=8080</code></p></li>
</ul>

<p>If the above command is successful, then it will help you rule out auth/access issues. If the issue is not solved, go through the logs to get more specifics on the problem. </p>
