繁体   English   中英

找不到“docker”命令 - 谷歌云平台

[英]“docker” command not found - Google cloud platform

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”错误。

谷歌云支持指导我做的事情

我怎样才能在没有错误的情况下运行这个命令?

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM