It's on the list to print a helpful example of this when you try to import a protected image. The docker hub doesn't allow us to know the difference between "not there" and "you don't have access to it", but we should go ahead and suggest to you that it might require authentication and print the command.
On Sun, Feb 21, 2016 at 5:40 PM, Tim Moor <[email protected]> wrote: > Magic! > > That fixed the issues, thanks. > > > > On 22/02/16, 10:38 AM, "Clayton Coleman" <[email protected]> wrote: > >>This command: >> >> oc secrets new keyname .dockercfg=/root/.docker/config.json >> >>is the culprit. That should be >> >> oc secrets new keynote .dockerconfigjson=/root/.docker/config.json >> >>.dockercfg is the older format that should always be pointing to a >>.dockercfg file. >> >>On Sun, Feb 21, 2016 at 4:15 PM, Tim Moor <[email protected]> wrote: >>> Hey list, still having issues with creating an image-stream from a private >>> docker repository. >>> >>> Software versions >>> - origin-1.1.3-0.git.0.8edc1be.el7.centos.x86_64 >>> - origin-clients-1.1.3-0.git.0.8edc1be.el7.centos.x86_64 >>> - origin-master-1.1.3-0.git.0.8edc1be.el7.centos.x86_64 >>> - origin-node-1.1.3-0.git.0.8edc1be.el7.centos.x86_64 >>> - origin-sdn-ovs-1.1.3-0.git.0.8edc1be.el7.centos.x86_64 >>> >>> Steps taken to create image-stream for private repository content. >>> >>> ## LINK >>> >https://docs.openshift.com/enterprise/latest/dev_guide/image_pull_secrets.html >>> >>> docker login >>> <dockerhub> >>> >>> oc secrets new keyname .dockercfg=/root/.docker/config.json >>> >>> # Both >>> oc secrets add serviceaccount/default secrets/keyname --for=pull >>> oc secrets add serviceaccount/builder secrets/keyname >>> >>> >>> oc import-image docker.io/springnz/base_centos7:latest >>> >>> —[results] >>> Name: base_centos7 >>> Created: 28 seconds ago >>> Labels: <none> >>> Annotations: >>> openshift.io/image.dockerRepositoryCheck=2016-02-21T21:02:18Z >>> Docker Pull Spec: 172.30.1.238:5000/spring/base_centos7 >>> >>> >>> Tag Spec Created PullSpec Image >>> latest springnz/base_centos7 28 seconds ago import >>> failed: you may not have access to the Docker image "springn... >>> -- >>> >>> >>> The following completes successfully. >>> - docker pull springnz/base_centos7 >>> >>> >>> Any help greatly received. >>> >>> >>>>From: Clayton Coleman <[email protected]> >>>>Date: Wednesday, 10 February 2016 at 10:53 PM >>>>To: Tim Moor <[email protected]> >>>>Cc: "[email protected]" <[email protected]> >>>>Subject: Re: OpenShift Image Stream for Docker private repository >>>> >>>> >>>>hat version of origin are you running? _______________________________________________ users mailing list [email protected] http://lists.openshift.redhat.com/openshiftmm/listinfo/users
