Docker 驱动程序

Buildx Docker 驱动程序是默认驱动程序。它使用 BuildKit 服务器 直接内置到 Docker Engine 中的组件。Docker 驱动程序不需要 配置。

与其他驱动程序不同,使用 Docker 驱动程序的构建器不能手动 创建。它们仅从 Docker 上下文自动创建。

使用 Docker 驱动程序构建的镜像会自动加载到本地镜像中 商店。

概要

# The Docker driver is used by buildx by default
docker buildx build .

无法配置要使用的 BuildKit 版本,也无法传递任何 其他 BuildKit 参数添加到使用 Docker 驱动程序的构建器中。这 BuildKit 版本和参数由 Docker Engine 内部预设。

如果您需要额外的配置和灵活性,请考虑使用 Docker 容器驱动程序

延伸阅读

有关 Docker 驱动程序的更多信息,请参阅 buildx 参考