简体   繁体   中英

How do i get docker registry username and password in gitlab.com?

I want to login to docker registry in gitlab.com using ansible play, but how do i get docker registry username and password in gitlab?

Is it same as gitlab.com username and password?

Registry credentials in GitLab are the same as the repositories they belong to. So, you can use your GitLab.com username and password.

That said, you should probably create a personal access token with only read_registry permissions to use with Ansible, instead of literally using your account credentials, to limit what Ansible can do. And, you can revoke the token if it leaks.

Documentation: Personal access tokens

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