Kubernetes PullImageError using Docker Hub with a private image

前端 未结 2 1345
挽巷
挽巷 2021-01-31 23:58

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

2条回答
  •  礼貌的吻别
    2021-02-01 00:10

    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.

提交回复
热议问题