使用命令在終端登入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