docker-gitlab icon indicating copy to clipboard operation
docker-gitlab copied to clipboard

Initialize account password

Open WuChenDi opened this issue 1 year ago • 4 comments

hey, bro, how are you doing, sorry to bother you. I'm using the latest docker-compose.yml and found the setting

    ...
    environment:
    -  ...
    - GITLAB_ROOT_PASSWORD=123456789
    - [email protected]
    ...

is not working, but in image: sameersbn/gitlab:14.9.1 is normal, now using image: sameersbn/gitlab:15.9.2, if so, can you tell me how should If so, can you tell me how to modify it? image

WuChenDi avatar Mar 09 '23 02:03 WuChenDi

这个版本的gitlab不允许用弱密码,用户创建失败了,注册一个新的,然后通过rails控制台设置state和admin

veecam avatar Mar 13 '23 19:03 veecam

这个版本的gitlab不允许用弱密码,用户创建失败了,注册一个新的,然后通过rails控制台设置state和admin

这样子,好像我使用其他强密码也是失效的,如果用户创建失效,请问yml配置目前是无用的了吗

WuChenDi avatar Mar 24 '23 01:03 WuChenDi

我也遇到相同的问题了,请问有解决方案吗,难道只能通过gitlab-rails 去控制台设置密码了吗?

wangliang01 avatar Jul 31 '24 02:07 wangliang01

GITLAB_ROOT_PASSWORD and GITLAB_ROOT_EMAIL are refered only first run (I mean, when the database is empty.
You can change password from rails console. Please note that gitlab-rails command does not available for sameersbn/gitlab. Run bundle exec rails console as user git. Or, you can use rake task instead: bundle exec rake "gitlab:password:reset".

See "Self-compiled (source)" tab on documentation: https://docs.gitlab.com/ee/security/reset_user_password.html?tab=Self-compiled+%28source%29

kkimurak avatar Jul 31 '24 03:07 kkimurak