Docker 驱动程序

Buildx Docker 驱动是默认驱动。它使用直接内置于 Docker Engine 中的 BuildKit 服务器组件。Docker 驱动无需配置。

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

使用 Docker 驱动构建的镜像会自动加载到本地镜像存储中。

概要

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

无法配置要使用的 BuildKit 版本,也无法向使用 Docker 驱动的构建器传递任何额外的 BuildKit 参数。BuildKit 版本和参数由 Docker Engine 内部预设。

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

进一步阅读

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

© . This site is unofficial and not affiliated with Kubernetes or Docker Inc.