Hi, friends:

I've set up an internal HTTPS-based Docker registry accessible by the
URL "docker-registry.default.svc.cluster.local:5000".

I can successfully log in and push some images to the registry,
following the instructions:
https://docs.openshift.com/enterprise/3.2/install_config/install/docker_registry.html

However, it's not clear to me how to create the correct imagestream so
that it pulls from the internal registry instead of Docker Hub by
following this:
https://docs.openshift.com/container-platform/3.3/dev_guide/managing_images.html

Neither works:

apiVersion: "v1"
kind: "ImageStream"
metadata:
  name: "my-app"
spec:
  dockerImageRepository:
"docker-registry.default.svc.cluster.local:5000/my-project/my-app"

<-------------------------------------->

apiVersion: v1
metadata:
 name: "my-app"
 namespace: "my-project"
 labels:
   app: "my-app"
spec:
 tags:
 - name: my-app
   from:
     kind: DockerImage
     name: 
docker-registry.default.svc.cluster.local:5000/my-project/my-app:latest

The instructions are:
$ docker login -u my-project -p `oc whoami -t`
docker-registry.default.svc.cluster.local:5000
$ oc create -f <above configs>
$ oc new-app my-app

Is there anything I'm missing?

Thanks for your help.

Best,

Yunchih

_______________________________________________
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to