1. docker buildx install
使用 docker builder
作为 buildx 的别名。
即,安装成功后执行 docker builder
,实际上是执行 docker buildx
。
1.1. 帮助
# docker buildx install --help
Usage: docker buildx install
Install buildx as a 'docker builder' alias
Options:
--builder string Override the configured builder instance
1.2. 示例
默认的 builder 输出
# docker builder --help
Usage: docker builder COMMAND
Manage builds
Commands:
build Build an image from a Dockerfile
prune Remove build cache
Run 'docker builder COMMAND --help' for more information on a command.
执行安装,正常安装没有输出
# docker buildx install
安装后的 docker builder
输出和 docker buildx
输出一样
# docker builder --help
Usage: docker buildx [OPTIONS] COMMAND
Build with BuildKit
Options:
--builder string Override the configured builder instance
Management Commands:
imagetools Commands to work on images in registry
Commands:
bake Build from a file
build Start a build
create Create a new builder instance
du Disk usage
inspect Inspect current builder instance
ls List builder instances
prune Remove build cache
rm Remove a builder instance
stop Stop builder instance
use Set the current builder instance
version Show buildx version information
Run 'docker buildx COMMAND --help' for more information on a command.