sudo docker run hello-world
docker: 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).
See ‘docker run –help’.
Modify docker image source:
The default source of Docker is foreign official source, the download speed is slow, can be changed to domestic, speed up
Plan a
Modify or add /etc/docker/daemon.json
# vi /etc/docker/daemon.json
{
“registry-mirrors”: [“http://hub-mirror.c.163.com”]
}
systemctl restart docker.service
Scheme 2
Modified or new/etc/sysconfig/docker, additional parameters after the OPTIONS variable – registry-mirror=https://docker.mirrors.ustc.edu.cn
# vi /etc/sysconfig/docker
OPTIONS=’–selinux-enabled –log-driver=journald –registry-mirror=https://docker.mirrors.ustc.edu.cn’
Domestic source description of Docker:
Docker official China
https://registry.docker-cn.com
netease
http://hub-mirror.c.163.com
University of Science and Technology of China
https://docker.mirrors.ustc.edu.cn
Ali cloud
https://pee6w651.mirror.aliyuncs.com
Finally, I solved the problem with the following solution:
Into the/etc/docker
Check for daemon.JSON. This is the default configuration file for Docker.
If it is not new, if it is, change it.
Json
[root@zengmg docker]# vi daemon. Json
{
“registry-mirrors”: [“https://registry.docker-cn.com”,”http://hub-mirror.c.163.com”]
}
Save exit.
restart the docker service
service docker restart
Success!
docker: 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).
See ‘docker run –help’.
Modify docker image source:
The default source of Docker is foreign official source, the download speed is slow, can be changed to domestic, speed up
Plan a
Modify or add /etc/docker/daemon.json
# vi /etc/docker/daemon.json
{
“registry-mirrors”: [“http://hub-mirror.c.163.com”]
}
systemctl restart docker.service
Scheme 2
Modified or new/etc/sysconfig/docker, additional parameters after the OPTIONS variable – registry-mirror=https://docker.mirrors.ustc.edu.cn
# vi /etc/sysconfig/docker
OPTIONS=’–selinux-enabled –log-driver=journald –registry-mirror=https://docker.mirrors.ustc.edu.cn’
Domestic source description of Docker:
Docker official China
https://registry.docker-cn.com
netease
http://hub-mirror.c.163.com
University of Science and Technology of China
https://docker.mirrors.ustc.edu.cn
Ali cloud
https://pee6w651.mirror.aliyuncs.com
Finally, I solved the problem with the following solution:
Into the/etc/docker
Check for daemon.JSON. This is the default configuration file for Docker.
If it is not new, if it is, change it.
Json
[root@zengmg docker]# vi daemon. Json
{
“registry-mirrors”: [“https://registry.docker-cn.com”,”http://hub-mirror.c.163.com”]
}
Save exit.
restart the docker service
service docker restart
Success!
Read More:
- Solve Linux docker pull error get https://registry-1.docker.io/v2/ : Net / http: TLS handshake timeout
- Error response from daemon: Get https://20.0.0.100/v2/: dial tcp 20.0.0.100:443: connect: connection
- [Sovled] Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
- docker Error response from daemon: Bad response from Docker engine
- How to Fix ERROR: Couldn’t connect to Docker daemon at http+docker://localhost – is it running?
- An error occurred trying to connect: get http: / / var / run/ docker.sock/v1 .21/containers/json?all
- Docker command error during connect: get http://2F2F.2Fpipe2Fdocker_ engine/v1.36/containers/json: open//.
- docker: Error response from daemon: driver failed programming external connectivity on endpoint lamp
- docker: Error response from daemon: driver failed programming external connectivity on endpoint
- Docker error response from daemon: Conflict: unable to deletexxxxx
- Warning: failed to get default registry endpoint from daemon
- Error an unexpected error occurred:“ https://registry.npm.taobao.orgnpm/element-ui : get
- When docker creates a container command: Error response from daemon: No command specified
- Solve win10 docker:error during connect: Get https://192.168.99.100 : 2376 and error checking TLS connection
- Docker delete error response from daemon: Conflict: unable to delete xxxxx solution
- The docker runtime container reported an error: error response from daemon: OCI runtime create failed
- Docker creation container cannot find network card: error response from daemon: network XXXX not found
- Command failed: NPM install — loglevel error — registry= https://registry.npm.taobao.org
- This error may also indicate that the docker daemon is not running.
- Error response from daemon for private harbor login