One more quick question ;)

I created a service acount, how do I get the password or token I would use
in docker to pull images?

ยป oc describe sa robot
Name:                robot
Namespace:           saml-idp-server
Labels:              <none>
Annotations:         <none>
Image pull secrets:  robot-dockercfg-k7dqm
Mountable secrets:   robot-token-7scfm
                     robot-dockercfg-k7dqm
Tokens:              robot-token-6w99j
                     robot-token-7scfm
Events:              <none>

Thank you so much.


On Fri, May 11, 2018 at 10:25 PM, Mohamed Lrhazi <[email protected]> wrote:

> Thanks Ben!
>
>
>
> On Fri, May 11, 2018 at 10:16 PM, Ben Parees <[email protected]> wrote:
>
>>
>>
>>
>>
>> On Fri, May 11, 2018, 22:11 Mohamed Lrhazi <[email protected]> wrote:
>>
>>> Hello,
>>>
>>> The registry requires token based authentication which seems to be an
>>> expiring token.
>>> How would I access docker images remotely, from a cronjob task? Is there
>>> a way to make an image publicly available? or a way to get a permanent
>>> token?
>>>
>>
>> Service account tokens don't expire, create a service account and use its
>> token.
>>
>>
>>> https://docs.openshift.org/latest/install_config/registry/
>>> accessing_registry.html#access-user-prerequisites
>>>
>>> --
>>> Thanks,
>>> Mohamed.
>>> _______________________________________________
>>> users mailing list
>>> [email protected]
>>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>>>
>>
>
>
> --
> Thanks,
> Mohamed.
>



-- 
Thanks,
Mohamed.
_______________________________________________
users mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to