# Registry mirror You can define a registry mirror to use for your builds by providing a [BuildKit daemon configuration](https://github.com/moby/buildkit/blob/master/docs/buildkitd.toml.md) while creating a builder with the [`--config` flags](https://docs.docker.com/engine/reference/commandline/buildx_create/#config). ```toml # /etc/buildkitd.toml debug = true [registry."docker.io"] mirrors = ["mirror.gcr.io"] ``` > **Note** > > `debug = true` has been added to be able to debug requests > in the BuildKit daemon and see if the mirror is effectively used. Then [create a `docker-container` builder](https://docs.docker.com/engine/reference/commandline/buildx_create/) that will use this BuildKit configuration: ```console $ docker buildx create --use \ --name mybuilder \ --driver docker-container \ --config /etc/buildkitd.toml ``` Boot and [inspect `mybuilder`](https://docs.docker.com/engine/reference/commandline/buildx_inspect/): ```console $ docker buildx inspect --bootstrap ``` Build an image: ```console $ docker buildx build --load . -f-<