`docker-credential-gcloud` not in system PATH

后端 未结 10 1412
悲哀的现实
悲哀的现实 2020-12-14 14:38

After the latest updates to gcloud and docker I\'m unable to access images on my google container repository. Locally when I run: gcloud auth configure-docker

10条回答
  •  旧巷少年郎
    2020-12-14 15:06

    The new version of google-cloud-sdk has only docker-credential-gcr but not docker-credential-gcloud anymore. On the other hand one of my python packages always requested docker-credential-gcloud.

    The solution was to symlink docker-credential-gcloud to docker-credential-gcr:

    ln -s /path/to/google-cloud-sdk/bin/docker-credential-gcr /usr/local/bin/docker-credential-gcloud
    

    ls -l /usr/local/bin | grep docker should now print:

    ...
    docker-credential-gcloud -> /path/to/google-cloud-sdk/bin/docker-credential-gcr
    ...
    

提交回复
热议问题