Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set registry mirror for docker toolbox in windows

Tags:

docker

I found a file called com.docker.service.config under C:\Program Files\Docker\Docker. How to configure the registry mirror inside this file? The file is in XML format as follows:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <startup> 
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6"/>
    </startup>
</configuration>

Can't find any documentation on docker official website, can anyone shed some light? Thanks.

like image 405
Jeff Tian Avatar asked Sep 04 '25 01:09

Jeff Tian


1 Answers

Found the solution unintentionally:

Open C:\Users\<YourName>\.docker\daemon.json, edit the "registry-mirrors" entry in that file.

enter image description here

{"registry-mirrors":["https://registry.docker-cn.com"],"insecure-registries":[], "debug":true, "experimental": true}
like image 176
Jeff Tian Avatar answered Sep 07 '25 14:09

Jeff Tian