【发布时间】:2023-02-16 11:51:36
【问题描述】:
我想使用最新版本的 buildkit 来构建我的 docker 镜像,因为最新版本的 docker 中包含的 buildkit 版本存在一些错误。
是否可以使用 buildctl 命令构建镜像的本地版本,然后使用 docker run 运行此镜像?
我试过添加 --output type=image,name=<tag>,push=false 但 docker 没有找到这张图片。我想避免推送此图像,因为它仅用于运行某些测试。我已经设法使用--export-cache type=local,dest=<folder> 在本地导出缓存,但我不确定如何从docker run 使用它。
或者,是否可以升级 docker 在其发布的 dind 容器中使用的 buildkit 版本?
【问题讨论】:
-
我遇到了同样的问题,当我尝试使用
push=True(我理解这意味着推送到我的本地注册表)时,我得到了server message: insufficient_scope: authorization failed