`docker-credential-gcloud`不在系统PATH中 [英] `docker-credential-gcloud` not in system PATH

查看:1673
本文介绍了`docker-credential-gcloud`不在系统PATH中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

gcloud和docker的最新更新后,我无法访问我的谷歌容器存储库上的图像。我在本地运行时: gcloud auth configure-docker 根据更新gcloud后的说明,我收到以下消息:

 警告:`docker-credential-gcloud`不在系统PATH中。 
gcloud的Docker凭证助手可以配置,但在更正之前它不会运行。
gcloud凭证助手已经正确注册。

运行 docker-credential-gcloud 返回未找到docker-credential-gcloud



我没有其他与gcloud相关的路径问题,我不知道如何安装/添加docker-credential-gcloud到路径。这是我安装的内容(通过 gcloud version 显示):

  Google Cloud SDK 197.0.0 
beta 2017.09.15
bq 2.0.31
container-builder-local $ b $ core 2018.04.06
docker-credential-gcr
gsutil 4.30

我也有Docker CE版本18.03.0-ce-mac60(23751) / p>

这是我的$ PATH: / usr / local / bin:/ usr / bin:/ bin:/ usr / sbin:/ sbin $ b我也跑了 source / usr / local / Caskroom / google-cloud-sdk / latest / google-cloud-sdk /

解决方案

永远不会找到直接解决问题的方法 docker-credential-gcloud 问题,但是下面让我重新开始运行。警告:以下操作将删除所有现有的Docker镜像并安装一堆gcloud实用程序:


  1. gcloud组件安装docker-credential-gcr

  2. 完全重新启动终端

  3. docker-credential-gcr configure-docker

  4. screen〜/ Library / Containers / com.docker.docker / Data / com.docker。 driver.amd64-linux / tty


  5. umount / var / lib / docker / overlay2

  6. rm -rf / var / lib / docker

  7. 完全重新启动终端。


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 as per the instructions after updating gcloud, I get the following message:

WARNING: `docker-credential-gcloud` not in system PATH.
gcloud's Docker credential helper can be configured but it will not work until this is corrected.
gcloud credential helpers already registered correctly.

Running which docker-credential-gcloud returns docker-credential-gcloud not found.

I have no other gcloud-related path issues and for the life of me can't figure out how to install/add docker-credential-gcloud to path. Here's what I have installed (shown via gcloud version):

Google Cloud SDK 197.0.0
beta 2017.09.15
bq 2.0.31
container-builder-local
core 2018.04.06
docker-credential-gcr
gsutil 4.30

I also have Docker CE Version 18.03.0-ce-mac60 (23751).

Here's my $PATH:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

I also ran source /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc on original gcloud install.

解决方案

Never found a way to directly resolve the docker-credential-gcloud issue, but the following got me up and running again. WARNING: the following will delete all your existing docker images and install a bunch of gcloud utilities:

  1. gcloud components install docker-credential-gcr,
  2. Restart the terminal completely
  3. docker-credential-gcr configure-docker.
  4. screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty

  5. umount /var/lib/docker/overlay2

  6. rm -rf /var/lib/docker
  7. Restart the terminal completely.

这篇关于`docker-credential-gcloud`不在系统PATH中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆