Exception information:
Error response from daemon: Head https://registry-1.docker.io/v2/library/redis/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fredis%3Apull&service=registry.docker.io: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
There are two main ways to solve this problem
Method 1:
Parsing IP is not available. You can use dig @ 114.114.114.114 registry-1.docker.io to find the following information
;; ANSWER SECTION:
registry-1.docker.io. forty IN A 3.209.182.229
Fill in the information in answer section and etc/hosts file
Method 2:
DNS resolution error
in/etc/resolv. Conf
Add Google’s DNS domain name resolution address:
nameserver 8.8.4.4
nameserver localdomain
restart the docker command after saving:
Read More:
- The docker export container cannot be run after being imported: error response from daemon: no command specified
- [Solved] docker: Error response from daemon: OCI runtime create failed: container_linux.go:380
- [Solved] Win 10 VS Code Connect to the container of the server error: Cannot connect to the Docker daemon at … Is the docker daemon running
- [Solved] Docker Download Mirror Error: Cannot connect to the Docker daemon at…
- [Solved] Docker Filed to Start Container: Error response from daemon: network XXX not found
- Docker Start Container Error: Error response from daemon: task already exists: unknown
- Initializing the Kubernetes master node ERROR: failed to pull image registry.aliyuncs.com/google_containers/coredns:v1.8.0
- Linux Install Docker Error: Failed to restart docker.service: Unit docker.service not found.
- How to Solve Docker delete container image error: Error response from daemon: conflict: unable to delete 7cc1942f1ed5 (must be forced)
- [Solved] Job for docker.service failed because the control process exited with error code. After changing the docker configuration
- [Solved] Docker Staratup Error: Failed to start Docker Application Container Engineadsafdsad.
- [Solved] docker Startup Error: Job for docker.service failed because the control process exited with error code
- Docker Error: error invoking remote method ‘docker-start-container‘: error: (http code 500) server error –
- Linux Virtual Machine Boot Container: Error response from daemon: driver failed programming external connectivity on endpoint
- [docker][issue]Error response from daemon: mkdir xxx: file exists: unknown
- [Solved] Docker error: “unknown runtime specified NVIDIA” using GPU“
- See system logs and ‘systemctl status docker.service‘ for details
- docker-compose -version Run Error [How to Fix]
- The solution of insufficient disk space of docker in Ubuntu
- [Solved] Docker Install Error: [Errno 14] curl#60 – Peer‘s Certificate issuer is not recognized