Docker buildkit Buildctl命令标记多个图像
我正在使用Buildkit构建和推送图像。我想在buildctl命令中的图像上添加多个标记。例如 buildctl build--frontend=dockerfile.v0--local context=--本地dockerfile=--output=type=image,name=test/repo:tag1,test/repo:tag2,push=true 上述命令失败。请建议如何使用buildctl命令标记带有tag1和tag2的图像并将其推送Docker buildkit Buildctl命令标记多个图像,docker-buildkit,Docker Buildkit,我正在使用Buildkit构建和推送图像。我想在buildctl命令中的图像上添加多个标记。例如 buildctl build--frontend=dockerfile.v0--local context=--本地dockerfile=--output=type=image,name=test/repo:tag1,test/repo:tag2,push=true 上述命令失败。请建议如何使用buildctl命令标记带有tag1和tag2的图像并将其推送 使用exporter不起作用它报告expo
使用exporter不起作用它报告exporter已被弃用为了标记和推送多个图像(和/或标记),您必须转义图像:
buildctl build \
--frontend dockerfile.v0 \
--local context=. \
--local dockerfile=. \
--output type=image,\"name=test/repo:tag1,test/repo:tag2\",push=true