<p>I do anything i can.
Not in daemon.json,maybe in some docker binary file.</p>
<pre><code>   # cat /etc/docker/daemon.json
 
     {
        &quot;registry-mirrors&quot;: [
        &quot;https://d8b3zdiw.mirror.aliyuncs.com&quot;
        ],
 
         &quot;insecure-registries&quot;: [
       &quot;https://ower.site.com&quot;
</code></pre>
<p>This is docker info</p>
<pre><code>[root@k8s-master ~]# docker info
Client:
 Context:    default
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Docker Buildx (Docker Inc., v0.7.1-docker)
  scan: Docker Scan (Docker Inc., v0.12.0)

Server:
 Containers: 25
  Running: 20
  Paused: 0
  Stopped: 5
 Images: 13
 Server Version: 20.10.12
 Storage Driver: overlay2
  Backing Filesystem: xfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 7b11cfaabd73bb80907dd23182b9347b4245eb5d
 runc version: v1.0.2-0-g52b36a2
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 3.10.0-1160.el7.x86_64
 Operating System: CentOS Linux 7 (Core)
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 3.701GiB
 Name: k8s-master
 ID: P6VN:S2FI:AU6D:LBCO:PPX7:KREJ:7OIQ:2K2J:XISF:MZGT:YSDB:XFIG
 Docker Root Dir: /data/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false
</code></pre>
<p>Disconnect the network,exec &quot;kubectl create configmap nginx-config --from-file=nginx.conf&quot;,then,exec &quot;kubectl describe pod nginx1-5c9f6bbd8c-4jmx2.
The messages display</p>
<pre><code>Events:
  Type     Reason     Age                From               Message
  ----     ------     ----               ----               -------
  Normal   Scheduled  34s                default-scheduler  Successfully assigned default/nginx1-5c9f6bbd8c-4jmx2 to k8s-master
  Warning  Failed     33s                kubelet            Failed to pull image &quot;nginx&quot;: rpc error: code = Unknown desc = Error response from daemon: Get &quot;https://registry-1.docker.io/v2/&quot;: read tcp 10.15.29.150:51492-&gt;54.85.133.123:443: read: connection reset by peer
</code></pre>
<p>I want to know where is “registry-1.docker.io”.</p>

zhuwei
<p>You are showing an issue with kubernetes, but making your configuration on docker. While these both run containers, they have separate configurations. For configuring the mirroring, it depends on how you run your containers in kubernetes. The most popular runtime being containerd's CRI, which has <a href="https://github.com/containerd/containerd/blob/main/docs/cri/registry.md" rel="nofollow noreferrer">documentation on configuring their registry settings</a>:</p>
<p><code>/etc/containerd/config.toml</code>:</p>
<pre><code>version = 2

[plugins.&quot;io.containerd.grpc.v1.cri&quot;.registry.mirrors]
  [plugins.&quot;io.containerd.grpc.v1.cri&quot;.registry.mirrors.&quot;docker.io&quot;]
    endpoint = [&quot;https://registry-1.docker.io&quot;]
</code></pre>
<p>Which has been replaced with:</p>
<p><code>/etc/containerd/config.toml</code>:</p>
<pre><code>[plugins.&quot;io.containerd.grpc.v1.cri&quot;.registry]
   config_path = &quot;/etc/containerd/certs.d&quot;
</code></pre>
<p>and</p>
<p><code>/etc/containerd/certs.d/docker.io/hosts.toml</code>:</p>
<pre><code>server = &quot;https://docker.io&quot;

[host.&quot;https://registry-1.docker.io&quot;]
# ...
</code></pre>
<p>As for where <code>registry-1.docker.io</code> comes from, it's the DNS name for the Docker Hub registry, which is the default when you do not specify a registry in your image name.</p>
