[buildx] buildkit image support tencent cloud env

Signed-off-by: Kang Huaishuai <khs1994@khs1994.com>
pull/448/head
Kang Huaishuai 2020-04-26 10:17:19 +08:00
parent 4561243c23
commit 0fd981acc2
No known key found for this signature in database
GPG Key ID: 5E515022F565DA09
1 changed files with 5 additions and 0 deletions

View File

@ -14,10 +14,15 @@ $ docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd44
Docker `builder` `--platform` `builder` 使 [](https://github.com/moby/buildkit/blob/master/docs/buildkitd.toml.md) 的 [`dockerpracticesig/buildkit:master`](https://github.com/docker-practice/buildx) 镜像替换官方镜像。
> https://github.com/docker-practice/buildx 构建自己的 buildkit 镜像并使用它。
```bash
#
$ docker buildx create --use --name=mybuilder-cn --driver docker-container --driver-opt image=dockerpracticesig/buildkit:master
# (coding.net )
$ docker buildx create --use --name=mybuilder-cn --driver docker-container --driver-opt image=dockerpracticesig/buildkit:master-tencent
# $ docker buildx create --name mybuilder --driver docker-container
$ docker buildx use mybuilder