Skip to content

Commit

Permalink
use --decode instead of -D or -d
Browse files Browse the repository at this point in the history
  • Loading branch information
chenopis authored Jul 20, 2018
1 parent 3bad918 commit de699eb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,15 @@ The value of the `.dockerconfigjson` field is a base64 representation of your Do
To understand what is in the `.dockerconfigjson` field, convert the secret data to a
readable format:

kubectl get secret regcred --output="jsonpath={.data.\.dockerconfigjson}" | base64 -D
kubectl get secret regcred --output="jsonpath={.data.\.dockerconfigjson}" | base64 --decode

The output is similar to this:

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

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

echo "c3R...zE2" | base64 -D
echo "c3R...zE2" | base64 --decode

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

Expand Down

0 comments on commit de699eb

Please sign in to comment.