简体   繁体   English

使用 Artifact Repository 时如何查看在我的 Google Cloud Platform Cloud Run 服务上运行的文件?

[英]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.

相关问题 如何在 python 程序中定义我的 Google Cloud Platform 服务帐户的密钥? - How do I define my Google Cloud Platform service account's key in a python program? 在谷歌云平台上使用 FFMPEG - Using FFMPEG on Google Cloud Platform fastai 使用谷歌云平台 - fastai using google cloud platform 在谷歌云平台运行 liquibase 脚本 - Running liquibase script in google cloud platform 如何删除我的 Google Cloud Platform 帐户? - How do I delete my Google Cloud Platform Account? 如何在不使用本地服务帐户密钥文件的情况下从 Cloud Run 服务访问 Google Cloud Storage 存储桶? - How to access to a Google Cloud Storage bucket from a Cloud Run service without using a local Service Account key file? 在本地使用 Intellij Cloud Code Cloud Run 时如何指定 GOOGLE_APPLICATION 凭据? - How to specify GOOGLE_APPLICATION credentials when using Intellij Cloud Code Cloud Run locally? 打开我的 Cloud Run 服务的 URL 时出现 403“错误:禁止” - 403 "Error: Forbidden" when opening the URL of my Cloud Run service 如何使用 Cloud Function 服务帐户在 Cloud Function 中创建签名的 Google Cloud Storage URL? - How to create signed Google Cloud Storage URLs in Cloud Function using Cloud Function service account? 如何在特定文件集从谷歌云到达云存储时启动云数据流管道 function - how to launch a cloud dataflow pipeline when particular set of files reaches Cloud storage from a google cloud function
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM