Update buildx image

Signed-off-by: Kang HuaiShuai <khs1994@khs1994.com>
pull/449/head
Kang HuaiShuai 2020-04-07 09:18:40 +08:00
parent a691aa607a
commit e0797515d3
No known key found for this signature in database
GPG Key ID: 0A380828B1C243A7
3 changed files with 20 additions and 2 deletions

View File

@ -12,10 +12,13 @@ Docker for Linux 不支持构建 `arm` 架构镜像,我们可以运行一个
$ docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3 $ docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
``` ```
Docker `builder` `--platform` `builder` Docker `builder` `--platform` `builder` 使 [](https://github.com/moby/buildkit/blob/master/docs/buildkitd.toml.md) 的 [`dockerpracticesig/buildkit:master`](https://github.com/docker-practice/buildx) 镜像替换官方镜像。
```bash ```bash
$ docker buildx create --name mybuilder --driver docker-container #
$ docker buildx create --use --name=mybuilder-cn --driver docker-container --driver-opt image=dockerpracticesig/buildkit:master
# $ docker buildx create --name mybuilder --driver docker-container
$ docker buildx use mybuilder $ docker buildx use mybuilder
``` ```

View File

@ -576,3 +576,4 @@ MONGO_VERSION=3.6
## ##
* [](https://docs.docker.com/compose/compose-file/) * [](https://docs.docker.com/compose/compose-file/)
* [awesome-compose](https://github.com/docker/awesome-compose)

View File

@ -67,6 +67,20 @@ Registry Mirrors:
https://hub-mirror.c.163.com/ https://hub-mirror.c.163.com/
``` ```
## `k8s.gcr.io`
[ ](https://www.aliyun.com/product/acr?source=5176.11533457&userCode=8lx5zmtu&type=copy) **镜像中心** -> **镜像搜索** 查找。
`k8s.gcr.io/coredns:1.6.7` `registry.cn-hangzhou.aliyuncs.com/google_containers/coredns:1.6.7`
```bash
# $ docker pull k8s.gcr.io/xxx
$ docker pull registry.cn-hangzhou.aliyuncs.com/google_containers/xxx
```
## ##
访 Docker 访 Docker