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

添加用户

用户授权

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

相关推荐
IT大白鼠5 天前
GitLab 未认证 RCE 应急实战CVE-2026-97229(CVSS 10.0)
网络·安全·gitlab
71777711 天前
Git自建用什么工具比较好:Gitea、Forgejo、GitLab CE与Gitee的选型对比
git·gitlab·gitea
colinu13 天前
Create gitlab-runner
gitlab
master33614 天前
GitLab 10.x → 19.5.x 升级路线图
gitlab
长不大的杨瑞杰14 天前
OpenCode v2 GitLab 集成实战:Issue 驱动开发、MR 审查与 CI/CD 最小权限
人工智能·ci/cd·gitlab·ai编程·opencode
极小狐20 天前
极狐GitLab万人并发架构实践,大规模组织的扩容路线图
架构·gitlab·极狐gitlab
Lvan的前端笔记21 天前
GitLab CI 环境变量整理
ci/cd·gitlab
李迟22 天前
CICD实例:解决GitLab Runner无法执行CICD问题
gitlab
hanjq_code24 天前
gitlab本地文件 跨分支 忽略改动 不提交
gitlab
极小狐24 天前
极狐GitLab集群高可用方案,多节点架构与故障自愈实践
架构·gitlab·高可用·极狐gitlab