From 3bad918ec6df94837182581558dac9adc9a8daba Mon Sep 17 00:00:00 2001 From: Chandan Kumar Date: Wed, 6 Jun 2018 16:45:26 +0530 Subject: [PATCH 1/2] Fix pipe to base64 -d to -D Mac: `-d` does not work -D does Eg. echo "c3R...zE2" | base64 -D --- .../configure-pod-container/pull-image-private-registry.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/docs/tasks/configure-pod-container/pull-image-private-registry.md b/content/en/docs/tasks/configure-pod-container/pull-image-private-registry.md index f5022948945b1..ee302c1811556 100644 --- a/content/en/docs/tasks/configure-pod-container/pull-image-private-registry.md +++ b/content/en/docs/tasks/configure-pod-container/pull-image-private-registry.md @@ -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 -D 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 -D The output, username and password concatenated with a `:`, is similar to this: From de699eb6b3d7ea2a428bb1ddf31db6832299fefa Mon Sep 17 00:00:00 2001 From: Andrew Chen Date: Thu, 19 Jul 2018 17:01:27 -0700 Subject: [PATCH 2/2] use --decode instead of -D or -d --- .../configure-pod-container/pull-image-private-registry.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/docs/tasks/configure-pod-container/pull-image-private-registry.md b/content/en/docs/tasks/configure-pod-container/pull-image-private-registry.md index ee302c1811556..b7441f3a6b729 100644 --- a/content/en/docs/tasks/configure-pod-container/pull-image-private-registry.md +++ b/content/en/docs/tasks/configure-pod-container/pull-image-private-registry.md @@ -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: