安装gitlab
sudo docker run --detach \
--hostname gitlab \
--publish 543:443 --publish 90:80 --publish 222:22 \
--name gitlab \
--restart always \
--volume $GITLAB_HOME/config:/etc/gitlab \
--volume $GITLAB_HOME/logs:/var/log/gitlab \
--volume $GITLAB_HOME/data:/var/opt/gitlab \
--shm-size 256m \
registry.gitlab.cn/omnibus/gitlab-jh:latest
端口543:暴露给https
端口90:暴露给http
端口222:暴露给ssh
获得root登录密码
docker exec -it gitlab bash
cat /etc/gitlab/initial_root_password
initial_root_password内容如下文章来源:https://www.toymoban.com/news/detail-689092.html
# WARNING: This value is valid only in the following conditions
# 1. If provided manually (either via `GITLAB_ROOT_PASSWORD` environment variable or_root_password']` setting in `gitlab.rb`, it was provided before database was seeded for the rst reconfigure run).
# 2. Password hasn't been changed manually, either via UI or via command line.
#
# If the password shown here doesn't work, you must reset the admin password followiee/security/reset_user_password.html#reset-your-root-password.
Password: JiLfbPrwhQZfjWdiggKCHEpsuvYmcM2nRe5yyboRqws=
# NOTE: This file will be automatically deleted in the first reconfigure run after 24 hours.
登录root并切换成中文
文章来源地址https://www.toymoban.com/news/detail-689092.html
到了这里,关于docker安装gitlab的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!