我无法从 jenkins 执行任何 docker 命令并收到以下错误,
+ sudo docker pull ubuntu
Using default tag: latest
Error response from daemon: Get https://registry-1.docker.io/v2/library/ubuntu/manifests/latest: unauthorized: incorrect username or password
Build step 'Execute shell' marked build as failure
Finished: FAILURE
我尝试过的事情
1 ) jenkins 用户是 Jenkins master 上 docker 组的一部分
ubuntu@ip-10-20-10-106:/tmp$ groups jenkins
jenkins : jenkins sudo docker
2)码头工人版本
ubuntu@ip-10-20-10-106:/tmp$ docker --version
Docker version 19.03.6, build 369ce74a3c
如何解决这个问题?