I am trying to run a container on my Kubernetes cluster (1.9.7-gke.6), using a private registry (Artifactory).
Failed to pull image "myrepo.myartifactory.mycompany.com/org/image:latest": rpc error: code = Unknown desc = Error: Status 400 trying to pull repository org/image: "{
\"errors\" :[ {
\"status\" : 400,
\"message\" : \"Unsupported docker v1 repository request for 'myrepo'\"\n } ]
}"
I assume this means that the docker client tries to perform a v1 registry request, which seems to be not supported by our Artifactory installation.
I checked the docker version of my cluster nodes:
$ kubectl describe nodes | grep docker
Container Runtime Version: docker://17.3.2
Container Runtime Version: docker://17.3.2
Container Runtime Version: docker://17.3.2
I found the Docker flag --disable-legacy-registry=true but I am not sure how to best configure my GKE cluster this way.
所有评论(0)