简体   繁体   中英

docker login to gitlab registry with github account

I've just created a GitLab account with my GitHub account.

How do I sign in to my GitLab registry using my GitHub account?

docker login with my GitHub password doesn't work.

Once your GitLab account created, you should be able to create a PAT (Personal Access Token)

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

As noted in issue 21309 , when running from GitLAb-CI, that would be

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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