[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: OpenShift Image Stream for Docker private repository



Magic!

That fixed the issues, thanks. 



On 22/02/16, 10:38 AM, "Clayton Coleman" <ccoleman redhat com> 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 <tim moor spring co nz> 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 <ccoleman redhat com>
>>>Date:  Wednesday, 10 February 2016 at 10:53 PM
>>>To:  Tim Moor <timm spring co nz>
>>>Cc:  "users lists openshift redhat com" <users lists openshift redhat com>
>>>Subject:  Re: OpenShift Image Stream for Docker private repository
>>>
>>>
>>>hat version of origin are you running?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]