SRE Gitlab CE

 


sudo docker run --detach \
--hostname gitlab.david888.com  \
--publish 443:443 --publish 80:80 \
--name gitlab \
--restart always \
--volume /gitlab/config:/etc/gitlab \
--volume /gitlab/logs:/var/log/gitlab \
--volume /gitlab/data:/var/opt/gitlab \
gitlab/gitlab-ce:latest



-- 
gitlab ce 無法登入的解法
https://stackoverflow.com/questions/55747402/docker-gitlab-change-forgotten-root-password

root@gitlab:/# nano /etc/gitlab/gitlab.rb
root@gitlab:/# gitlab-ctl reconfigure

user = User.where(id: 1).first
user.password = 'qAHuoWCJTJYH'
user.password_confirmation = 'qAHuoWCJTJYH'
user.save
exit


張貼留言 (0)
較新的 較舊