Hi,

although the image was pushed during the build, it says: Failed to
pull image "172.30.165.95:5000/myproject/ruby-ex


Manually pulling gives:

$ docker pull 172.30.165.95:5000/myproject/ruby-ex:latest
Trying to pull repository 172.30.165.95:5000/myproject/ruby-ex ...
Pulling repository 172.30.165.95:5000/myproject/ruby-ex
Error: image myproject/ruby-ex not found


On Wed, Sep 28, 2016 at 12:27 AM, Clayton Coleman <ccole...@redhat.com> wrote:
> You can run "oc get events" to see the message about pulling,

$ oc get events
LASTSEEN   FIRSTSEEN   COUNT     NAME               KIND
SUBOBJECT                     TYPE      REASON       SOURCE
9s         22s         2         ruby-ex-3-dtdy0    Pod
spec.containers{ruby-ex}      Warning   Failed       {kubelet
10.5.0.27}    Failed to pull image
"172.30.165.95:5000/myproject/ruby-ex@sha256:df71f696941a9daa5daaea808cfcaaf72071d7ad206833c1b95a5060dd95ca92":
Cannot overwrite digest
sha256:df71f696941a9daa5daaea808cfcaaf72071d7ad206833c1b95a5060dd95ca92
9s         22s         2         ruby-ex-3-dtdy0    Pod
                     Warning   FailedSync   {kubelet 10.5.0.27}
Error syncing pod, skipping: failed to "StartContainer" for "ruby-ex"
with ErrImagePull: "Cannot overwrite digest
sha256:df71f696941a9daa5daaea808cfcaaf72071d7ad206833c1b95a5060dd95ca92"

21s       21s       1         ruby-ex-3-dtdy0   Pod
spec.containers{ruby-ex}   Normal    BackOff      {kubelet 10.5.0.27}
 Back-off pulling image
"172.30.165.95:5000/myproject/ruby-ex@sha256:df71f696941a9daa5daaea808cfcaaf72071d7ad206833c1b95a5060dd95ca92"


> image to the internal registry, docker has to have --insecure-registry set.

Docker is configured with:

OPTIONS='--selinux-enabled --log-driver=journald --insecure-registry
172.30.0.0/16'


Full output I posted here:
https://gist.github.com/gbraad/e82edffb671a5dd154a939491514f7f8

regards,


Gerard

-- 

   Gerard Braad | http://gbraad.nl
   [ Doing Open Source Matters ]

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

Reply via email to