Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-22686

Can't push image to docker registry

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • 4.4.1.AM2
    • 4.4.0.Final
    • docker, openshift
    • None
    • devex #117 July 2016
    • 10
    • Hide

      1) Download and install CDK
      2) add RHEL for libvirt box

      3) start the CDK server adapter
      4) clone and import https://github.com/redhat-helloworld-msa/aloha.git project
      5) mvn clean install
      6) Dockerfile right-click -> Run as -> Docker Image build
      7) In Docker Explorer right-click on aloha image -> Deploy to Openshift
      8) Tick "Push image to registry"
      9) Next -> Finish

      Show
      1) Download and install CDK 2) add RHEL for libvirt box 3) start the CDK server adapter 4) clone and import https://github.com/redhat-helloworld-msa/aloha.git project 5) mvn clean install 6) Dockerfile right-click -> Run as -> Docker Image build 7) In Docker Explorer right-click on aloha image -> Deploy to Openshift 8) Tick "Push image to registry" 9) Next -> Finish

      The screencast of the last steps is attached.
      Properties and settings of the cdk haven't been changed. Everything is dowloaded and installed in a usual way.

      Possibly something is with the dns - maybe it wasn't configured correctly while cdk installation. Because we to push to the valid url, while OS connection only an IP in its settings.

      exception:
      org.eclipse.linuxtools.docker.core.DockerException: com.spotify.docker.client.DockerException: org.eclipse.linuxtools.docker.core.DockerImagePushFailedException: Image push failed: hub.openshift.rhel-cdk.10.1.2.2.xip.io/sample-project/aloha: unable to ping registry endpoint https://hub.openshift.rhel-cdk.10.1.2.2.xip.io/v0/
      v2 ping attempt failed with error: Get https://hub.openshift.rhel-cdk.10.1.2.2.xip.io/v2/: dial tcp 10.1.2.2:443: connection refused
      v1 ping attempt failed with error: Get https://hub.openshift.rhel-cdk.10.1.2.2.xip.io/v1/_ping: dial tcp 10.1.2.2:443: connection refused
      at org.eclipse.linuxtools.internal.docker.core.DockerConnection.pushImage(DockerConnection.java:1047)
      at org.jboss.tools.openshift.internal.ui.dockerutils.PushImageToRegistryJob.doRun(PushImageToRegistryJob.java:67)
      at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:37)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      Caused by: com.spotify.docker.client.DockerException: org.eclipse.linuxtools.docker.core.DockerImagePushFailedException: Image push failed: hub.openshift.rhel-cdk.10.1.2.2.xip.io/sample-project/aloha: unable to ping registry endpoint https://hub.openshift.rhel-cdk.10.1.2.2.xip.io/v0/
      v2 ping attempt failed with error: Get https://hub.openshift.rhel-cdk.10.1.2.2.xip.io/v2/: dial tcp 10.1.2.2:443: connection refused
      v1 ping attempt failed with error: Get https://hub.openshift.rhel-cdk.10.1.2.2.xip.io/v1/_ping: dial tcp 10.1.2.2:443: connection refused
      at org.eclipse.linuxtools.internal.docker.core.DockerProgressHandler.progress(DockerProgressHandler.java:42)
      at com.spotify.docker.client.ProgressStream.tail(ProgressStream.java:74)
      at com.spotify.docker.client.DefaultDockerClient.push(DefaultDockerClient.java:821)
      at org.eclipse.linuxtools.internal.docker.core.DockerConnection.pushImage(DockerConnection.java:1043)
      ... 3 more
      Caused by: org.eclipse.linuxtools.docker.core.DockerImagePushFailedException: Image push failed: hub.openshift.rhel-cdk.10.1.2.2.xip.io/sample-project/aloha: unable to ping registry endpoint https://hub.openshift.rhel-cdk.10.1.2.2.xip.io/v0/
      v2 ping attempt failed with error: Get https://hub.openshift.rhel-cdk.10.1.2.2.xip.io/v2/: dial tcp 10.1.2.2:443: connection refused
      v1 ping attempt failed with error: Get https://hub.openshift.rhel-cdk.10.1.2.2.xip.io/v1/_ping: dial tcp 10.1.2.2:443: connection refused
      at org.eclipse.linuxtools.internal.docker.ui.views.ImagePushProgressHandler.processMessage(ImagePushProgressHandler.java:49)
      at org.eclipse.linuxtools.internal.docker.core.DockerProgressHandler.progress(DockerProgressHandler.java:40)
      ... 6 more

            dbocharo@redhat.com Dmitrii Bocharov (Inactive)
            dbocharo@redhat.com Dmitrii Bocharov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: