Skip to content

Commit de699eb

Browse files
authored
use --decode instead of -D or -d
1 parent 3bad918 commit de699eb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
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 --decode
9494

9595
The output is similar to this:
9696

9797
{"auths":{"yourprivateregistry.com":{"username":"janedoe","password":"xxxxxxxxxxx","email":"jdoe@example.com","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 --decode
102102

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

0 commit comments

Comments
 (0)