Re: How to best access registry from scripts
oc serviceaccount get-token Is a little easier for scripting On May 11, 2018, at 10:49 PM, Mohamed Lrhaziwrote: I got it ! Thanks! » oc describe secret robot-token-6w99j On Fri, May 11, 2018 at 10:38 PM, Mohamed Lrhazi wrote: > 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: > Annotations: > Image pull secrets: robot-dockercfg-k7dqm > Mountable secrets: robot-token-7scfm > robot-dockercfg-k7dqm > Tokens: robot-token-6w99j > robot-token-7scfm > Events: > > Thank you so much. > > > On Fri, May 11, 2018 at 10:25 PM, Mohamed Lrhazi wrote: > >> Thanks Ben! >> >> >> >> On Fri, May 11, 2018 at 10:16 PM, Ben Parees wrote: >> >>> >>> >>> >>> >>> On Fri, May 11, 2018, 22:11 Mohamed Lrhazi 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/ac cessing_registry.html#access-user-prerequisites -- Thanks, Mohamed. ___ users mailing list users@lists.openshift.redhat.com http://lists.openshift.redhat.com/openshiftmm/listinfo/users >>> >> >> >> -- >> Thanks, >> Mohamed. >> > > > > -- > Thanks, > Mohamed. > -- Thanks, Mohamed. ___ users mailing list users@lists.openshift.redhat.com http://lists.openshift.redhat.com/openshiftmm/listinfo/users ___ users mailing list users@lists.openshift.redhat.com http://lists.openshift.redhat.com/openshiftmm/listinfo/users
Re: How to best access registry from scripts
I got it ! Thanks! » oc describe secret robot-token-6w99j On Fri, May 11, 2018 at 10:38 PM, Mohamed Lrhaziwrote: > 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: > Annotations: > Image pull secrets: robot-dockercfg-k7dqm > Mountable secrets: robot-token-7scfm > robot-dockercfg-k7dqm > Tokens: robot-token-6w99j > robot-token-7scfm > Events: > > Thank you so much. > > > On Fri, May 11, 2018 at 10:25 PM, Mohamed Lrhazi wrote: > >> Thanks Ben! >> >> >> >> On Fri, May 11, 2018 at 10:16 PM, Ben Parees wrote: >> >>> >>> >>> >>> >>> On Fri, May 11, 2018, 22:11 Mohamed Lrhazi 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/ac cessing_registry.html#access-user-prerequisites -- Thanks, Mohamed. ___ users mailing list users@lists.openshift.redhat.com http://lists.openshift.redhat.com/openshiftmm/listinfo/users >>> >> >> >> -- >> Thanks, >> Mohamed. >> > > > > -- > Thanks, > Mohamed. > -- Thanks, Mohamed. ___ users mailing list users@lists.openshift.redhat.com http://lists.openshift.redhat.com/openshiftmm/listinfo/users
Re: How to best access registry from scripts
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: Annotations: Image pull secrets: robot-dockercfg-k7dqm Mountable secrets: robot-token-7scfm robot-dockercfg-k7dqm Tokens: robot-token-6w99j robot-token-7scfm Events: Thank you so much. On Fri, May 11, 2018 at 10:25 PM, Mohamed Lrhaziwrote: > Thanks Ben! > > > > On Fri, May 11, 2018 at 10:16 PM, Ben Parees wrote: > >> >> >> >> >> On Fri, May 11, 2018, 22:11 Mohamed Lrhazi 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 >>> users@lists.openshift.redhat.com >>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users >>> >> > > > -- > Thanks, > Mohamed. > -- Thanks, Mohamed. ___ users mailing list users@lists.openshift.redhat.com http://lists.openshift.redhat.com/openshiftmm/listinfo/users
Re: How to best access registry from scripts
Thanks Ben! On Fri, May 11, 2018 at 10:16 PM, Ben Pareeswrote: > > > > > On Fri, May 11, 2018, 22:11 Mohamed Lrhazi 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 >> users@lists.openshift.redhat.com >> http://lists.openshift.redhat.com/openshiftmm/listinfo/users >> > -- Thanks, Mohamed. ___ users mailing list users@lists.openshift.redhat.com http://lists.openshift.redhat.com/openshiftmm/listinfo/users
Re: How to best access registry from scripts
On Fri, May 11, 2018, 22:11 Mohamed Lrhaziwrote: > 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 > users@lists.openshift.redhat.com > http://lists.openshift.redhat.com/openshiftmm/listinfo/users > ___ users mailing list users@lists.openshift.redhat.com http://lists.openshift.redhat.com/openshiftmm/listinfo/users
How to best access registry from scripts
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? https://docs.openshift.org/latest/install_config/registry/accessing_registry.html#access-user-prerequisites -- Thanks, Mohamed. ___ users mailing list users@lists.openshift.redhat.com http://lists.openshift.redhat.com/openshiftmm/listinfo/users