-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
4.17.z
-
Quality / Stability / Reliability
-
False
-
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
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: