【问题标题】:Az acr build command info needed需要 az acr 构建命令信息
【发布时间】:2021-09-29 17:37:45
【问题描述】:

根据文档https://docs.microsoft.com/en-us/azure/container-registry/container-registry-quickstart-task-cli,以下命令构建并推送到注册表。如果我只需要构建然后根据我的兴趣推送怎么办。因为我必须在推送之前扫描图像。

az acr build --image sample/hello-world:v1 --registry myContainerRegistry008 --file Dockerfile .

注意:系统上没有安装 docker daemon。

【问题讨论】:

    标签: azure docker containers azure-container-registry acr


    【解决方案1】:

    按照Azure Documentation 中的建议,您可以在az acr build 命令中使用--no-push 标志来构建docker 文件而不是将其推送到注册表,

    这是供参考的示例输出:

    【讨论】:

    • 我用过这个命令。它不会在本地保存图像。它只是构建并离开它。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-26
    • 1970-01-01
    • 2012-12-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多