Problem to loginto the gitlab repository from Cenos

I am trying unsuccessfully to connect to registry.gitlab.com from Linux by running the following command:

docker login -u -p registry.gitlab.com

and I get the following error:

Error response from daemon: Get https://registry.gitlab.com/v2/: unauthorized: HTTP Basic: Access denied

When I run the same command from windows I do not get the error.

Thanks