简体   繁体   English

如何从 Azure 容器注册表中的映像创建 Dockerfile?

[英]How can I create a Dockerfile FROM an Image in Azure Container Registry?

I've pushed an Image (which is a version of R + some libraries) on my private Azure Container Registry.我在我的私有 Azure 容器注册表上推送了一个映像(它是 R + 一些库的一个版本)。 How can build an Image starting from this Image?如何从这个 Image 开始构建一个 Image?

In other words, I want to do "FROM registry/env:version" but I'm pretty sure that I need to use other settings to access my repository.换句话说,我想做“FROM registry/env:version”,但我很确定我需要使用其他设置来访问我的存储库。

Thanks for help!感谢帮助!

You should login your Docker daemon to your Azure Container Registry using the following command : docker login myregistry.azurecr.io --username $SP_APP_ID --password $SP_PASSWD您应该使用以下命令将 Docker 守护程序登录到 Azure 容器注册表: docker login myregistry.azurecr.io --username $SP_APP_ID --password $SP_PASSWD

Then, using the fully qualified path for your image in the Dockerfile should work automatically, as long as the identity provided in the first step (login) has the rights to pull this image.然后,只要在第一步(登录)中提供的身份有权拉取此映像,就应该自动在 Dockerfile 中使用映像的完全限定路径。

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

相关问题 如何从 Azure 容器注册表中删除映像 - How to delete image from Azure Container Registry 使用 Az CLI 创建新的 Azure 容器实例时,无法从私有 Azure 容器注册表中提取映像 - Can't pull image from private Azure Container Registry when using Az CLI to create a new Azure Container Instance 如何从Docker注册表中提取容器映像以部署Azure容器 - How to pull container image from docker registry to deploy azure container 我无法在Azure容器注册表中选择图像 - I can't choose image in Azure Container Registry 创建 Azure 容器注册表任务时,如何在文件夹中引用 Dockerfile? - How do I reference a Dockerfile in a folder when creating an Azure Container Registry Task? WSL-无法登录或从Azure容器注册表中提取图像 - WSL - Can't login or pull image from an azure container registry 无法从Azure容器注册表中提取图像-拒绝提取 - Can't pull image from Azure Container Registry - pull denied 如何为 Azure 容器注册表编写 docker 映像开发以暂存升级脚本? - How can I write a docker image dev to stage promotion script for Azure container registry? 更新基本映像时,如何更新 azure 容器注册表中的所有映像 - How can I update all images in azure container registry when base image is updated 如何使用资源在 Azure 上创建容器注册表? - How do I create a Container Registry on Azure with a resource?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM