Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Docker buildkit Buildctl命令标记多个图像_Docker Buildkit - Fatal编程技术网

Docker buildkit Buildctl命令标记多个图像

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

我正在使用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不起作用它报告exporter已被弃用

为了标记和推送多个图像(和/或标记),您必须转义图像:

buildctl build \
  --frontend dockerfile.v0 \
  --local context=. \
  --local dockerfile=. \
  --output type=image,\"name=test/repo:tag1,test/repo:tag2\",push=true