authentication

docker image pull时频繁出现unauthorized: authentication required问题的一种解决方法

问题现象如下:

[root@ci1 ~]# docker image pull wzkres/centos-ci-gcc:centos-7-cross-arm64
centos-7-cross-arm64: Pulling from wzkres/centos-ci-gcc
2d473b07cdd5: Already exists 
9d26d6802cad: Pull complete 
90f6d29b7c1a: Pull complete 
7bfff1b24796: Pull complete 
80b3d4546432: Pull complete 
c3a37398e8b3: Pull complete 
3ba42b3a770d: Pull complete 
85b3405c69c4: Downloading 
2ad9c2d42a3d: Waiting 
5f1b06925eb4: Waiting 
4f4fb700ef54: Waiting 
57c257cf6173: Waiting 
787f48d693d2: Waiting 
9f1677804e77: Waiting 
c13fd6dc43b4: Waiting 
80bd40938514: Waiting 
56ba96a89fa8: Waiting 
unauthorized: authentication required

在从hub.docker.com拉取公开镜像时,频繁出现标题中提到的错误而失败,出现时间随机,且出现频率非常高,导致稍大些的镜像几乎无法顺利完成下载。一开始以为是网络问题,各种更换“科学”,使用镜像代理均没什么效果,看提示的是“authentication”,还以为是docker hub登录信息的问题,于是也试过docker login -u xxxx,无果…

Continue reading…