使用命令在终端登录harbor报错
报错信息如下
# docker login 192.168.3.61
Authenticating with existing credentials...
Stored credentials invalid or expired
Username (admin): admin
Password:
Error response from daemon: Get "http://192.168.3.61/v2/": unauthorized: authentication required
原因分析
终端docker版本较低导致升级至最新版本即可登录
# 更新源
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
# 安装
sudo yum install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
标签:sudo,harbor,required,ce,authentication,yum,报错,docker
From: https://www.cnblogs.com/minseo/p/18195272