Windows Server 2022离线搭建Gitlab

下载GitLab镜像

docker pull gitlab/gitlab-ce

导出为tar文件

docker save -o gitlab-ce-latest.tar gitlab/gitlab-ce:latest

将GitLab镜像文件gitlab-ce.tar复制到目标服务器

加载镜像

docker load -i gitlab-ce.tar

运行容器

docker run--d etach--p ublish 9019 : 80--n ame gitlab--r estart always gitlab/gitlab-ce : latest

登录

http://localhost:9019/users/sign_in

查看密码

docker exec-it gitlab cat/etc/gitlab/initial_root_password

修改密码

创建分组

创建项目

添加SSH 密钥

查看是否有现有的 SSH 密钥对

转到子目录.ssh。如果以前没有使用过,您需要生成一个 SSH 密钥对

ssh-keygen -t rsa

添加用户

用户授权

每一步修改都会出现这个,太难用了,先就这吧

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值