简体   繁体   English

docker使用github帐户登录gitlab注册表

[英]docker login to gitlab registry with github account

I've just created a GitLab account with my GitHub account. 我刚刚用我的GitHub帐户创建了一个GitLab帐户。

How do I sign in to my GitLab registry using my GitHub account? 如何使用我的GitHub帐户登录我的GitLab注册表?

docker login with my GitHub password doesn't work. 用我的GitHub密码docker login docker不起作用。

Once your GitLab account created, you should be able to create a PAT (Personal Access Token) 创建GitLab帐户后,您应该能够创建PAT(个人访问令牌)

docker login -u gitlab-token -p gitlab-token ...

As noted in issue 21309 , when running from GitLAb-CI, that would be 问题21309所述 ,当从GitLAb-CI运行时,就是这样

docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM