【Docker】安装gitlab 傻瓜式复制安装

目录

步骤1:添加容器

步骤2:启动容器

步骤3:查看容器

步骤4:进入容器

步骤5:查看密码(默认用户名root)

步骤1:添加容器

复制代码
docker run --detach \
  --hostname 192.168.243.136 \
  --publish 443:443 --publish 80:80 \
  --name gitlab \
  --restart always \
  --volume $GITLAB_HOME/config:/etc/gitlab:Z \
  --volume $GITLAB_HOME/logs:/var/log/gitlab:Z \
  --volume $GITLAB_HOME/data:/var/opt/gitlab:Z \
  --shm-size 256m \
  registry.gitlab.cn/omnibus/gitlab-jh:latest

步骤2:启动容器

复制代码
docker start gitlab

步骤3:查看容器

复制代码
docker ps -a

步骤4:进入容器

复制代码
docker exec -it  gitlab /bin/bash

步骤5:查看密码(默认用户名root)

复制代码
cat /etc/gitlab/initial_root_password
相关推荐
杨浦老苏6 小时前
自托管网页EPUB阅读器Codexa
docker·群晖·电子书·calibre·opds
杨浦老苏7 小时前
开源文件协作平台OpenCloud
docker·文件管理·群晖·协作
牛奶咖啡139 小时前
Git实践——GitLab服务器的部署与使用
gitlab·gitlab是什么·gitlab有啥用·gitlab适用场景·gitlab的版本如何选·安装部署gitlab·gitlab的使用
weixin_3776348410 小时前
【MinerU】 Docker Compose 使用
docker·容器·mineru
庚昀◟10 小时前
腾讯云 CVM + Docker + Jenkins + GitLab CI/CD 全流程指南(python、flask实现简单计算器)
python·ci/cd·docker·flask·jenkins
PH = 710 小时前
K8S集群的搭建
云原生·容器·kubernetes
SNOWPIAOP11 小时前
DOCKER的一些有用命令
docker
叶 落11 小时前
Ubuntu 通过 Docker 安装 Mysql8
linux·ubuntu·docker
赵文宇(温玉)11 小时前
Docker Compose 安装 Etcd
docker·容器·etcd
likeGhee11 小时前
docker创建nginx+keepalived+nacos集群(仅测试环境)
nginx·docker