I am getting a error while looking into docker repo through Jenkins on MacOS.
I tried running the docker login command manually in the directory mentioned above and it’s logging in successfully.
Does any one have faced a similar issue?
Are you using an API token or your actual password?
If you are using the password I would suggest that you look at trying with an API token.
Some details that might help are: which version of Docker you have, version of macOS, Intel vs Apple CPU, how you installed Docker (Docker Desktop or brew, here it seems to be from the plugin), etc…
I would check that /Users/rajat/.jenkins/tools/org.jenkinsci.plugins.docker.commons.tools.DockerTool/docker/bin/docker
is a proper binary for your current OS and CPU.
It should not be active yet, but if your account is SSO enabled the docker auth API will refuse passwords on September 16.