I am getting this error while executing #docker login command (Error response from daemon: Get “https://registry-1.docker.io/v2/”: unauthorized: incorrect username or password). I am using Harbor as Container registry. Please help me on this.
You say that you use Harbor, but the error message shows that you tried to log in to Docker Hub. You need to specify which registry you want to log in to:
docker login --help
Log in to a Docker registry or cloud backend. If no registry server is specified, the default is defined by the daemon. Usage: docker login [OPTIONS] [SERVER] [flags] docker login [command] Available Commands: azure Log in to azure Flags: -h, --help Help for login -p, --password string password --password-stdin Take the password from stdin -u, --username string username Use "docker login [command] --help" for more information about a command.
docker login yourregistry.yourdomain.com