Windows安装docker及使用

下载

https://www.docker.com/

安装

启动

此时拉取镜像会报错

Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

配置引擎

添加以下内容,然后Apply&restart

复制代码
"registry-mirrors": [
    "https://docker.m.daocloud.io",
    "https://docker.imgdb.de",
    "https://docker-0.unsee.tech",
    "https://docker.hlmirror.com",
    "https://docker.1ms.run",
    "https://func.ink",
    "https://lispy.org",
    "https://docker.xiaogenban1993.com"
  ]

重启

拉取镜像

查看镜像

修改资源位置