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

Re: unauthorized trying to deploy docker container



That's good to know. Thanks.

> On 15 Feb 2016, at 17:04, Clayton Coleman <ccoleman redhat com> wrote:
> 
> This is a docker limitation - they made the choice to return 401 for
> anything you don't have access to (even if it doesn't exist) because
> it prevents probing of the namespace to find out whether certain
> entities exist even if you don't have access.  It just makes usability
> a lot harder.
> 
> On Mon, Feb 15, 2016 at 9:54 AM, Candide Kemmler
> <candide intrinsic world> wrote:
>> Thanks Dan. However I sent a subsequent message saying that there was an
>> error in the URL. I think the message is misleading though as it should
>> trigger a 404 Not Found error and not an Unauthorized one.
>> 
>> 
>> On 15 Feb 2016, at 15:09, Dan Mace <dmace redhat com> wrote:
>> 
>> On Mon, Feb 15, 2016 at 5:01 AM, Candide Kemmler <candide intrinsic world>
>> wrote:
>>> 
>>> I'm trying to deploy a couchdb container on openshift, and have created 3
>>> yaml files to this end:
>>> 
>>> a persistent volume
>>> a persistent volume claim
>>> a deployment config
>>> 
>>> (see attached files)
>>> 
>>> However, I'm getting the following error upon deployment
>>> 
>>> Failed to pull image "
>>> 
>>> docker.io/centos/klaemo/couchdb sha256:d33822ecaae2e6247243b24c5c72c525714d77b904105f71679fbad04756bc96":
>>> unauthorized: access to the requested resource is not authorized
>>> 
>>> The container is hosted on docker's public registry so wondering what this
>>> message means...
>> 
>> 
>> I tried pulling that image myself with `docker pull` and got the same error,
>> which means access to the image requires docker hub authentication. You need
>> to create a secret in OpenShift which contains the pull credentials and then
>> reference that secret in the pod defined in your deploymentConfig. Here's
>> some more information about image pull secrets in Kubernetes and OpenShift:
>> 
>> https://github.com/kubernetes/kubernetes/blob/master/docs/user-guide/images.md#specifying-imagepullsecrets-on-a-pod
>> https://docs.openshift.org/latest/dev_guide/image_pull_secrets.html
>> 
>> If that's not enough to get you moving, please reach out!
>> 
>> -- Dan
>> 
>> 
>> 
>> 
>> _______________________________________________
>> users mailing list
>> users lists openshift redhat com
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>> 



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