Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-3286

[Mobile CI|CD]Can not push to docker internal registry

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Critical Critical
    • None
    • None
    • None
    • MacOsX

      When running apb test following exception occurred

      Found registry IP at: 172.30.1.1:5000
      Finished writing dockerfile.
      Building APB using tag: [172.30.1.1:5000/openshift/aerogear-digger-apb]
      Successfully built APB image: 172.30.1.1:5000/openshift/aerogear-digger-apb
      Error accessing the docker API. Is the daemon running?
      Exception occurred! 500 Server Error: Internal Server Error ("Get http://172.30.1.1:5000/v2/: net/http: request canceled (Client.Timeout exceeded while awaiting headers)")
      

      Services:

      NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
      docker-registry ClusterIP 172.30.1.1 <none> 5000/TCP 1h
      kubernetes ClusterIP 172.30.0.1 <none> 443/TCP,53/UDP,53/TCP 1h
      router ClusterIP 172.30.25.19 <none> 80/TCP,443/TCP,1936/TCP 1h

      ACTUAL:
      Routes:
      No resources found.

      EXPECTED:
      docke-registry route should be exposed

      Workaround of this issue

      1. Get docker registry
        $ oc get route docker-registry -n default
        docker_registry.default.<cluster_ip>.nip.io
      2. Build the container image with apb build specifying the proper route:
        $ apb build --tag <registry_route>/openshift/<my-apb>
      3. Push the image to the local OpenShift Container Registry
        $ docker login <registry_route> -u unused -p $(oc whoami -t)
        $ docker push <registry_route>/openshift/<my-apb>
      4. Force the OpenShift Ansible Broker to bootstrap
        $ apb bootstrap
      5. Relist the Service Catalog.
        $ apb list

              Unassigned Unassigned
              vchepeli_jira Vitalii Chepeliuk (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: