Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create GCR secret error: exactly one NAME is required, got 26

I am trying to create a docker-registry secrete for GCR, but am getting a really cryptic error message. This is the kubectl cmd that I am running:

kubectl create secret docker-registry gcrsecret --docker-username=_json_key --docker-password=”$(cat wk-test-1-b3c9659d9a07.json)” --docker-server=https://gcr.io [email protected]

But it is erroring out with the following error message:

error: exactly one NAME is required, got 26

Any thoughts? I am not seeing anything obvious in the documentation.

like image 594
Ryan Salmons Avatar asked Jul 09 '18 18:07

Ryan Salmons


1 Answers

It seems that you are using (Unicode RIGHT DOUBLE QUOTATION MARK) instead of " (ASCII 0x22), which is confusing your shell.

like image 112
jonjohnson Avatar answered Sep 29 '22 10:09

jonjohnson