Problem to loginto the gitlab repository from Cenos

I am trying unsuccessfully to connect to from Linux by running the following command:

docker login -u -p

and I get the following error:

Error response from daemon: Get unauthorized: HTTP Basic: Access denied

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