Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-44030

Incorrect syntax of dockerconfig.json given in documentation of converting cluster to a disconnected cluster

XMLWordPrintable

    • None
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      The command mentioned in step 1.d of section "Preparing cluster for mirroring"
      
      [+] https://docs.openshift.com/container-platform/4.17/disconnected/connected-to-disconnected.html#connected-to-disconnected-prepare-mirror_connected-to-disconnected
      
      Edit the .dockerconfigjson file to add your mirror registry and authentication credentials and save it as a new file:
      
      {"auths":{"<local_registry>": {"auth": "<credentials>","email": "you@example.com"}}},"<registry>:<port>/<namespace>/":{"auth":"<token>"}}}
          
      When tried to parse the file with jq it fails as below:
      
      # cat auth.json | jq
      {
        "auths": {
          "example.local:8443": {
            "auth": "xxxxxxx",
            "email": "example@local.com"
          }
        }
      }
      parse error: Expected value before ',' at line 1, column 157
      
      The correct syntax should be :
      
      {"auths":{"<local_registry>": {"auth": "<credentials>","email": "you@example.com"}}}

      Version-Release number of selected component (if applicable):

      4.17.z    

      How reproducible:

          

      Steps to Reproduce:

          1.
          2.
          3.
          

      Actual results:

          

      Expected results:

          

      Additional info:

          

              ocp-docs-bot OCP DocsBot
              rhn-support-chdeshpa Chinmay Deshpande
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: