Update pull-image-private-registry.md (#9153)

`-d` does not work on mac, `--decode` should work cross platform
This commit is contained in:
Samir Patel
2018-07-17 01:57:39 -04:00
committed by k8s-ci-robot
parent af689cd6bf
commit 6fc5f4b989
@@ -90,7 +90,7 @@ 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:
@@ -98,7 +98,7 @@ The output is similar to this:
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: