Explain what the auth field in the secret encodes (#7996)

Signed-off-by: Manuel Rüger <manuel@rueg.eu>
pull/8013/head
Manuel Rüger 2018-04-06 21:16:09 +02:00 committed by k8s-ci-robot
parent 5b29154c0e
commit 4f0d3d501e
1 changed files with 8 additions and 0 deletions

View File

@ -93,6 +93,14 @@ The output is similar to this:
{"auths":{"yourprivateregistry.com":{"username":"janedoe","password":"xxxxxxxxxxx","email":"jdoe@example.com","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
The output, username and password concatenated with a `:`, is similar to this:
janedoe:xxxxxxxxxxx
Notice that the Secret data contains the authorization token similar to your local `~/.docker/config.json` file.
You have successfully set your Docker credentials as a Secret called `regcred` in the cluster.