Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

docker login to gitlab registry with github account

Tags:

docker

gitlab

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.

like image 916
nt.jin Avatar asked May 24 '17 04:05

nt.jin


1 Answers

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
like image 68
VonC Avatar answered Sep 20 '22 12:09

VonC