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