Unable to authenticate plugins/docker and plugins/gcr


I ran into a strange issue with the docker and gcr plugins. When trying to build and publish an docker image am I receiving the following error:
Error authenticating: exit status 1

I suspect that the error is thrown here:

This would mean that the docker login command fails to get executed but am wondering how i could debug this to make sure it is.

After a little bit of debugging did i find the issue. The issue was in the way how i was encoding my json file. echo -n "..." | base64 removes the quotes in the json file which makes the json invalid. Could it maybe be an idea to throw back the error message produced by docker instead of the status code? This could have helped me a lot to debug my mistake

1 Like