tony@tp:~$ docker search xxl-job
Error response from daemon: Get https://index.docker.io/v1/search?q=xxl-job&n=25: dial tcp: lookup index.docker.io on 127.0.1.1:53: server misbehaving
Solution:
这个就是网络错误,我的是因为我的dns服务器没有设置好,在下面这个文件
vim /etc/resolv.conf
加上
nameserver 1.1.1.1
就好了
tony@tp:~$ docker pull xxl-job
Using default tag: latest
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)
Solution:
1. modify /etc/default/docker :
add DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4"
2. vim /etc/docker/daemon.json
在文件中加入:
{
"registry-mirrors":["https://docker.mirrors.ustc.edu.cn"]
}
3. sudo systemctl restart docker