[英]How to see the files running on my Google Cloud Platform Cloud Run service when using Artifact Repository?
This question How to see the files running on my Google Cloud Platform Cloud Run service?这个问题How to see the files running on my Google Cloud Platform Cloud Run service? seems to use
Container Registry (gcr.io files)
似乎使用
Container Registry (gcr.io files)
How do I view the files in my image when using Artifact Registry
as opposed to Container Registry
?使用
Artifact Registry
而不是Container Registry
时如何查看图像中的文件?
I have run我跑了
docker run -it --entrypoint sh europe-west1-docker.pkg.dev/bb-xyz/cloud-run-source-deploy/myservice:latest
but I get the message但我收到消息
Unable to find image
找不到图片
You must authenticate your registry first.您必须首先验证您的注册表。
As it says:正如它所说:
Use these commands with the Docker client to pull the image.
将这些命令与 Docker 客户端一起使用以拉取图像。 To use these commands, your Docker client must be configured to authenticate with $REGION-docker.pkg.dev.
要使用这些命令,您的 Docker 客户端必须配置为使用 $REGION-docker.pkg.dev 进行身份验证。 If this is the first time that you are pulling an image from $REGION-docker.pkg.dev with your Docker client, run the following command on the machine where Docker is installed.
如果这是您第一次使用 Docker 客户端从 $REGION-docker.pkg.dev 拉取镜像,请在安装了 Docker 的机器上运行以下命令。
gcloud auth configure-docker $REGION-docker.pkg.dev
After this, you can access it like in this answer .在此之后,您可以像在这个答案中一样访问它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.