title: Kubernetes Using private registry Nexus OSS
body: <p>i try to pull image from <code>nexus oss</code> , i create <code>daemon.json</code>  and add this line ( all node/worker )</p>
  <pre><code>{ &quot;insecure-registries&quot;:[&quot;10.24.100.31:8082&quot;],
  &quot;log-driver&quot;: &quot;json-file&quot;,
    &quot;log-opts&quot;: {
      &quot;max-size&quot;: &quot;10m&quot;,
      &quot;max-file&quot;: &quot;3&quot;,
      &quot;labels&quot;: &quot;production_status&quot;,
      &quot;env&quot;: &quot;os,customer&quot;
    }
  }
  </code></pre>
  <p>after that i login -&gt; <code>docker login  10.24.100.31:8082</code> succesfuly login ...</p>
  <p>after that i build and push image <code>10.24.100.31:8082/repository/docker/redesing:latest</code></p>
  <p><a href="https://i.stack.imgur.com/cCcOC.png" rel="nofollow noreferrer">Nexus oss image file screenshot</a></p>
  <p>when i pull image <code>docker pull image 10.24.100.31:8082/repository/docker/redesing:latest</code>
  working fine , but when i create <code>deployment.yaml</code></p>
  <pre><code>apiVersion: apps/v1
  kind: Deployment
  metadata:
    name: redesing
    labels:
      app: redesign
  spec:
    replicas: 3
    selector:
      matchLabels:
        app: redesign
    template:
      metadata:
        labels:
          app: redesign
      spec:
        containers:
          - name:  redesign
            image: 10.24.100.31:8082/repository/docker/redesing:latest
            ports:
            - containerPort: 5000
        imagePullSecrets:
          - name: registrypullsecret
  </code></pre>
  <p>here is error
  <a href="https://i.stack.imgur.com/m1fIj.png" rel="nofollow noreferrer">error screen</a></p>
  <pre><code>describe pods 
  </code></pre>
  <p><a href="https://i.stack.imgur.com/jqSmd.png" rel="nofollow noreferrer">pods describe screen</a></p>
  <p>purpose is to pull image from nexus oss ( kubernetes not docker )</p>