【问题标题】:"docker" command not found - Google cloud platform未找到“docker”命令 - 谷歌云平台
【发布时间】:2025-10-14 11:40:02
【问题描述】:
C:\Users\chris\AppData\Local\Google\Cloud SDK>gcloud auth login
Your browser has been opened to visit:

https://accounts.google.com/o/oauth2/auth ---
You are now logged in as [chriskwon7007@gmail.com].
Your current project is [nodejs-301100].  You can change this setting by running:
$ gcloud config set project PROJECT_ID

C:\Users\chris\AppData\Local\Google\Cloud SDK>gcloud auth configure-docker
WARNING: `docker` not in system PATH.
`docker` and `docker-credential-gcloud` need to be in the same PATH in order to work correctly 
together.
gcloud's Docker credential helper can be configured but it will not work until this is corrected.
WARNING: Your config file at [C:\Users\chris\.docker\config.json] contains these credential helper entries:

{
"credHelpers": {
    "gcr.io": "gcloud",
    "us.gcr.io": "gcloud",
    "eu.gcr.io": "gcloud",
    "asia.gcr.io": "gcloud",
    "staging-k8s.gcr.io": "gcloud",
    "marketplace.gcr.io": "gcloud"
   }
}
Adding credentials for all GCR repositories.
WARNING: A long list of credential helpers may cause delays running 'docker build'. We recommend passing the registry name to configure only the registry you are using.
gcloud credential helpers already registered correctly.

C:\Users\chris\AppData\Local\Google\Cloud SDK>docker pull asia.gcr.io/nodejs-301100/appengine/default.20210108t204554:latest
'docker' is not recognized as an internal or external command,
operable program or batch file.

我从 Gcp 容器注册表中执行了“docker pull”命令。 但是Shell出现“command not found”错误。

What I was guided by Google cloud support

我怎样才能不出错地运行这个命令?

【问题讨论】:

标签: docker google-cloud-platform


【解决方案1】:

我认为您的笔记本电脑/系统没有 docker 设置。请先在 windows 上设置 docker。或者使用 google cloud shell 来运行命令。

【讨论】:

  • 我太笨了,我认为我不必安装 docker。谢谢!