Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-3198

Adding a container registry from Dashboard User preferences doesn't work

XMLWordPrintable

    • False
    • None
    • False
    • Release Notes
    • Hide
      = Private container images cannot be pulled from added container registries

      Currently, pulling of a private container image fails when the image is pulled from a container registry that was added in the dashboard, menu:User Preferences[Add Container Registry].

      .Workaround

      1. Delete the `devworkspace-container-registry-dockercfg` Secret:
      +
      [subs="+quotes"]
      ----
      $ oc delete secret devworkspace-container-registry-dockercfg -n __<openshift_project>__
      ----

      2. Create a new `devworkspace-container-registry-dockercfg` Secret:
      +
      [subs="+quotes"]
      ----
      $ oc create secret docker-registry devworkspace-container-registry-dockercfg --docker-username=__<username>__ --docker-password=__<password>__ -n __<openshift_project>__
      ----

      3. Edit the metadata of the new Secret:
      +
      [source,yaml]
      ----
        labels:
          controller.devfile.io/devworkspace_pullsecret: 'true'
          controller.devfile.io/watch-secret: 'true'
      ----
      Show
      = Private container images cannot be pulled from added container registries Currently, pulling of a private container image fails when the image is pulled from a container registry that was added in the dashboard, menu:User Preferences[Add Container Registry]. .Workaround 1. Delete the `devworkspace-container-registry-dockercfg` Secret: + [subs="+quotes"] ---- $ oc delete secret devworkspace-container-registry-dockercfg -n __<openshift_project>__ ---- 2. Create a new `devworkspace-container-registry-dockercfg` Secret: + [subs="+quotes"] ---- $ oc create secret docker-registry devworkspace-container-registry-dockercfg --docker-username=__<username>__ --docker-password=__<password>__ -n __<openshift_project>__ ---- 3. Edit the metadata of the new Secret: + [source,yaml] ----   labels:     controller.devfile.io/devworkspace_pullsecret: 'true'     controller.devfile.io/watch-secret: 'true' ----
    • Known Issue
    • Done
    • Hide

      • 1. Add Container Registry (host, username, password) using Dev Spaces / User Preferences.

      • 2. Setup your workspace with a devfile pointing to an image in your registry.

      • 3. See how it fails.

       

      #Additional information :

      Client resolved this issue with below steps : 

      • after the steps 1-3. correct the secret that was created manually (devworkspace-container-registry-dockercfg)
      • Add the secret to the workspace Service Account under imagePullSecrets

      This work-around helped to resolve the issue, But looking for a permanent fix for this.

      Show
      1. Add Container Registry (host, username, password) using Dev Spaces / User Preferences. 2. Setup your workspace with a devfile pointing to an image in your registry. 3. See how it fails.   #Additional information : Client resolved this issue with below steps :  after the steps 1-3. correct the secret that was created manually (devworkspace-container-registry-dockercfg) Add the secret to the workspace Service Account under imagePullSecrets This work-around helped to resolve the issue, But looking for a permanent fix for this.

      Adding a Container Registry (using Dev Spaces / User Preferences) doesn't have the intended effect ( This feature worked with CodeReady Workspaces but doesn't work anymore. After setting up the registry no images can be pulled from there.

            oorel Oleksii Orel
            rhn-support-dkarde Dipak Karde
            Max Leonov Max Leonov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: