先上官方文档
快速安装
docker run -d --name gitlab -p 8080:80 --restart always gitlab/gitlab-ce
初始密码
docker exec -it gitlab grep 'Password:' /etc/gitlab/initial_root_password
修改密码
https://docs.gitlab.com/ee/security/reset_user_password.html
- docker ps 2.进入gitlab容器中 docker exec -it gitlab bash
gitlab-rails console -e production
user = User.where(id: 1).first
user = User.find_by(email: '[email protected]')
user.password = 'secret_pass'
user.password_confirmation = 'secret_pass'
user.save!