Skip to content

Instantly share code, notes, and snippets.

@pweil-
Created March 5, 2020 20:12
Show Gist options
  • Save pweil-/f96a837344810fa82af3406cb6a57fae to your computer and use it in GitHub Desktop.
Save pweil-/f96a837344810fa82af3406cb6a57fae to your computer and use it in GitHub Desktop.
[pweil@pweil-fedora oc]$ ./oc image mirror -a /tmp/pull-secret.json --dir=~/mirror-file file://openshift/release:4.3.3* ${LOCAL_REGISTRY}/ocp-4.3
E0305 15:10:05.065456 10090 config.go:236] while trying to parse blob "{\n \"auths\": {\n \"localhost:5000\": {\n \"auth\": \"dXNlcjpwYXNz\",\n \"email\": \"foo@bar.com\"\n }\n },\n}\n": invalid character '}' looking for beginning of object key string
error: unable to load --registry-config: invalid character '}' looking for beginning of object key string
[pweil@pweil-fedora oc]$ ./oc image mirror -a /tmp/pull-secret.json --dir=~/mirror-file file://openshift/release:4.3.3* ${LOCAL_REGISTRY}/ocp-4.3
E0305 15:10:25.159586 10112 config.go:236] while trying to parse blob " \"localhost:5000\": {\n \"auth\": \"dXNlcjpwYXNz\",\n \"email\": \"foo@bar.com\"\n }\n": invalid character ':' after top-level value
error: unable to load --registry-config: invalid character ':' after top-level value
[pweil@pweil-fedora oc]$ ./oc image mirror -a /tmp/pull-secret.json --dir=~/mirror-file file://openshift/release:4.3.3* ${LOCAL_REGISTRY}/ocp-4.3
E0305 15:11:19.666033 10215 config.go:236] while trying to parse blob "{\n \"auths\": {\n \"localhost:5000\": {\n \"auth\": \"dXNlcjpwYXNz\",\n \"email\": \"foo@bar.com\"\n \n }\n}\n": unexpected end of JSON input
error: unable to load --registry-config: unexpected end of JSON input
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment