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

Re: How to import private image from hub.docker to ImageStream ?



Have you checked this doc:

https://docs.openshift.org/latest/architecture/core_concepts/builds_and_image_streams.html#private-registries


On 02/23/2016 10:52 AM, Stéphane Klein wrote:
Hi,

I try to understand how to import private image from hub.docker to
ImageStream.

I have this in my configuration :

```
- kind: ImageStream
   apiVersion: v1
   metadata:
     name: api
   spec:
     dockerImageRepository: foobar/api
```

I've configured docker login on my host to access to my private hub.docker
images.

```
# oc import-image api
The import completed successfully.

Name:            api
Created:        17 minutes ago
Labels:            <none>
Annotations:
openshift.io/image.dockerRepositoryCheck=2016-02-23T09:14:34Z
Docker Pull Spec:    172.30.27.206:5000/foobar/api

Tag    Spec    Created        PullSpec    Image
latest    api    16 minutes ago            import failed: you may not have
access to the Docker image "api"
```

Why this error ?

I can pull my image with success :

```
# docker pull foobar/api
Using default tag: latest
latest: Pulling from foobar/api
bada6a63fdfa: Already exists
9eebb47979e1: Already exists
Digest:
sha256:1cd26e60704d87a1f01035ab6841761abe844ba3ad255ff9c83dded9540fb073
Status: Image is up to date for foobar/api:latest
```

```
# oc get is
NAME         DOCKER REPO                                       TAGS
UPDATED
api          foobar/api                                     latest
```

Questions :

* How can I fix « import failed: you may not have access to the Docker
image "api" » ?
* How can I use "oc import-image api --from…" to import local docker images
?
* Is it possible to append some documentation about external private
registry in this section
https://docs.openshift.com/enterprise/3.1/architecture/core_concepts/builds_and_image_streams.html#image-streams
? maybe an example with hub.docker ?

Best regards,
Stéphane



_______________________________________________
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]