mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-11-28 09:18:54 +00:00
18 lines
394 B
Go
18 lines
394 B
Go
|
# 使用 Buildx 构建镜像
|
|||
|
|
|||
|
## 使用
|
|||
|
|
|||
|
你可以直接使用 `docker buildx build` 命令构建镜像。
|
|||
|
|
|||
|
```bash
|
|||
|
$ docker buildx build .
|
|||
|
[+] Building 8.4s (23/32)
|
|||
|
=> ...
|
|||
|
```
|
|||
|
|
|||
|
Buildx 使用 [BuildKit 引擎](buildkit.md) 进行构建,支持许多新的功能,具体参考 [Buildkit](buildkit.md) 一节。
|
|||
|
|
|||
|
## 官方文档
|
|||
|
|
|||
|
* https://docs.docker.com/engine/reference/commandline/buildx/
|