I\'m struggling to get Kubernetes to work with my private hub.docker.com registry image.
I am using kubectl version: Client Version: version.Info{Major:\"1\", Mino
The documentation is out of date, in that it refers to .dockercfg
instead of .docker/config.json
. I will update it.
When you use the new .docker/config.json
format, you need to set type: kubernetes.io/dockerconfigjson
instead of type: kubernetes.io/.dockercfg
.
Support for type: kubernetes.io/dockerconfigjson
was added in v1.1.0 so it is supported by your server, but is not supported by your client (which is v1.1.0-alpha which predates v1.1.0).
When you use type: kubernetes.io/dockerconfigjson
, it should validate your secret contents.
With type: kubernetes.io/dockerconfigjson
, you do want to keep the auths
wrapper.