Pod中使用docker push 推送镜像到habor提示未授权

Asking for help? Comment out what you need so we can get more information to help you!

Cluster information:

Kubernetes version: v1.22.8
Installation method: kubeadm
Host OS: centos 7.9

Problem description:

Jenkins is installed in the cluster and creates a dynamic Jenkins slave node to run the build task. After building the image, log in to the Habor repository through Docker login - u uaername - p password and then use Docker push to push the image, indicating unauthorized access unauthorized: unauthorized to access repository: skywalk/test-slave-tool, action: push: