Skip to content

Commit 3bad918

Browse files
authored
Fix pipe to base64 -d to -D
Mac: `-d` does not work -D does Eg. echo "c3R...zE2" | base64 -D
1 parent e7679e8 commit 3bad918

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/en/docs/tasks/configure-pod-container/pull-image-private-registry.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ The value of the `.dockerconfigjson` field is a base64 representation of your Do
9090
To understand what is in the `.dockerconfigjson` field, convert the secret data to a
9191
readable format:
9292

93-
kubectl get secret regcred --output="jsonpath={.data.\.dockerconfigjson}" | base64 -d
93+
kubectl get secret regcred --output="jsonpath={.data.\.dockerconfigjson}" | base64 -D
9494

9595
The output is similar to this:
9696

9797
{"auths":{"yourprivateregistry.com":{"username":"janedoe","password":"xxxxxxxxxxx","email":"[email protected]","auth":"c3R...zE2"}}}
9898

9999
To understand what is in the `auth` field, convert the base64-encoded data to a readable format:
100100

101-
echo "c3R...zE2" | base64 -d
101+
echo "c3R...zE2" | base64 -D
102102

103103
The output, username and password concatenated with a `:`, is similar to this:
104104

0 commit comments

Comments
 (0)