Error login

When i try to login to registry i have a 403 error on a VM in Google Cloud but the login works fine on my local machine.

The command is:

docker login --username jtrejo

On my local machine:

WARNING! Your password will be stored unencrypted in /home/javier/.docker/config.json.
Configure a credential helper to remove this warning. See
Login Succeeded

On my VM on Google Cloud:

Error response from daemon: Get error parsing HTTP 403 response body: unexpected end of JSON input: ""