gitlab官网:
gitlab安装包下载:
https://packages.gitlab.com/gitlab
docker镜像:
https://hub.docker.com/r/gitlab/gitlab-ce
中文安装指南:
https://about.gitlab.cn/install/
docker安装:
VOL_HOME=/home/docker; mkdir -p $VOL_HOME/gitlab/config; mkdir -p $VOL_HOME/gitlab/data; mkdir -p $VOL_HOME/gitlab/logs; docker run -d \ --name gitlab \ --restart always \ --hostname 192.168.19.250 \ -p 5443:443 \ -p 5880:80 \ -p 5222:22 \ -v $VOL_HOME/gitlab/config:/etc/gitlab \ -v $VOL_HOME/gitlab/logs:/var/log/gitlab \ -v $VOL_HOME/gitlab/data:/var/opt/gitlab \ gitlab/gitlab-ce:latest
容器启动成功后查看root用户的初始密码:
docker exec -it gitlab grep 'Password:' /etc/gitlab/initial_root_password
登录地址,请替换实际IP:
参考:
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END