# 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](../reference/buildx_create.md#config). ```toml debug = true [registry."docker.io"] mirrors = ["mirror.gcr.io"] ``` > `/etc/buildkitd.toml` > :information_source: `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](../reference/buildx_create.md) that will use this BuildKit configuration: ```console $ docker buildx create --use \ --name mybuilder \ --driver docker-container \ --config /etc/buildkitd.toml ``` Boot and [inspect `mybuilder`](../reference/buildx_inspect.md): ```console $ docker buildx inspect --bootstrap ``` Build an image: ```console $ docker buildx build --load . -f-<