SUSE / caasp-services

Layered Services on the SUSE Container-as-a-Service Platform
Apache License 2.0
25 stars 30 forks source link

OAuth user can not authenticate via docker cli. #43

Open YunSangJun opened 6 years ago

YunSangJun commented 6 years ago

I used gitlab OAuth. Login to dashboard works successfully, but OAuth user can not authenticate via docker cli.

001 002
stefsuse commented 6 years ago

What is the error you get after "docker login"? If this is an insecure registry also remember to add it to /etc/docker/daemon.json

YunSangJun commented 6 years ago

I already add the insecure registry address to /etc/docker/daemon.json.

User ID(yunsangjun) that create by OAuth can not login via docker cli. User ID(demo) that created by Portus dashboard can login via docker cli.

sangjunyun:portus sangjunyun$ docker login http://portus-zcp.ghama.io:80
Username (Silly): yunsangjun
Password: 
Error response from daemon: Get http://portus-zcp.ghama.io:80/v2/: unauthorized: authentication required

sangjunyun:portus sangjunyun$ docker login http://portus-zcp.ghama.io:80
Username (Silly): demo
Password: 
Login Succeeded
sangjunyun:portus sangjunyun$