title: Create image-stream on image from private registry on OpenShift
body: <p>I've set up an OpenShift Origin 1.1.3 cluster. Now I'm pulling images from a private registry. This registry is 'insecure'. It has self-signed certificates and credentials to authenticate. I'm able to perform a <code>docker login</code> and to pull the image manually on my node.</p>
  
  <p>The problem is that only that node can access the image. So when I'm scaling my pod (based on that image), all replica's will run on that specific node. Other nodes are not able to pull or use the image. </p>
  
  <p>So I want to create an image-stream for my image:</p>
  
  <pre><code>oc import-image --insecure=true ec2-xxx:5000/image
  
  But:       message: you may not have access to the Docker image "ec2-xxx:5000/image"
        reason: Unauthorized
  </code></pre>
  
  <p>I read about creating a secret. I created it:</p>
  
  <pre><code>oc secrets new-dockercfg mysecret --docker-server=ec2-xxx:5000 --docker-username=*** --docker-password=*** --docker-email=any@mail.com
  </code></pre>
  
  <p>How do I have to add this secret to my image-stream? And is this the right approach?</p>