记一次docker login登录401 Unauthorized

在客户端使用命令登录报错

# docker login -u root -p password 192.168.3.61

报错信息如下

Error response from daemon: login attempt to http://192.168.3.61/v2/ failed with status: 401 Unauthorized

原因:
客户端和服务端时间不一致导致
修复方法:
同步时间错误的一端

# systemctl restart chronyd
posted @ 2024-05-23 14:49  minseo  阅读(109)  评论(0编辑  收藏  举报