Docker搭建GitLab

灰太狼 2021-10-18 10:24 995阅读 0赞

文章目录

  • Docker搭建GitLab
    • 在虚拟机cent OS 7上安装docker
      • 查看当前的内核版本
      • 安装 Docker
    • 安装Gitlab
      • 安装docker-compose
      • 下载docker-compose.yml
      • 启动gitlab
      • 登录Gitlab

Docker搭建GitLab

在虚拟机cent OS 7上安装docker

可以参考:https://www.runoob.com/docker/centos-docker-install.html

查看当前的内核版本

Docker 要求 CentOS 系统的内核版本高于 3.10 ,查看本页面的前提条件来验证你的CentOS 版本是否支持 Docker 。

通过 uname -r 命令查看你当前的内核版本

  1. [root@cc ~]# uname -r
  2. 3.10.0-957.el7.x86_64

安装 Docker

从 2017 年 3 月开始 docker 在原来的基础上分为两个分支版本: Docker CE 和 Docker EE。

Docker CE 即社区免费版,Docker EE 即企业版,强调安全,但需付费使用。

本文介绍 Docker CE 的安装使用。

移除旧的版本:

  1. sudo yum remove docker \
  2. docker-client \
  3. docker-client-latest \
  4. docker-common \
  5. docker-latest \
  6. docker-latest-logrotate \
  7. docker-logrotate \
  8. docker-selinux \
  9. docker-engine-selinux \
  10. docker-engine
  11. [root@cc ~]# sudo yum remove docker \
  12. > docker-client \
  13. > docker-client-latest \
  14. > docker-common \
  15. > docker-latest \
  16. > docker-latest-logrotate \
  17. > docker-logrotate \
  18. > docker-selinux \
  19. > docker-engine-selinux \
  20. > docker-engine
  21. 已加载插件:fastestmirror, langpacks
  22. 参数 docker 没有匹配
  23. 参数 docker-client 没有匹配
  24. 参数 docker-client-latest 没有匹配
  25. 参数 docker-common 没有匹配
  26. 参数 docker-latest 没有匹配
  27. 参数 docker-latest-logrotate 没有匹配
  28. 参数 docker-logrotate 没有匹配
  29. 参数 docker-selinux 没有匹配
  30. 参数 docker-engine-selinux 没有匹配
  31. 参数 docker-engine 没有匹配
  32. 不删除任何软件包
  33. [root@cc ~]#

安装一些必要的系统工具:

  1. sudo yum install -y yum-utils device-mapper-persistent-data lvm2

添加软件源信息:

  1. sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

更新 yum 缓存:

  1. sudo yum makecache fast

安装 Docker-ce:

  1. sudo yum -y install docker-ce

启动 Docker 后台服务

  1. sudo systemctl start docker

测试运行 hello-world

  1. docker run hello-world

在这里插入图片描述

查看docker 版本

  1. [root@cc ~]# docker version
  2. Client: Docker Engine - Community
  3. Version: 19.03.1
  4. API version: 1.40
  5. Go version: go1.12.5
  6. Git commit: 74b1e89
  7. Built: Thu Jul 25 21:21:07 2019
  8. OS/Arch: linux/amd64
  9. Experimental: false
  10. Server: Docker Engine - Community
  11. Engine:
  12. Version: 19.03.1
  13. API version: 1.40 (minimum version 1.12)
  14. Go version: go1.12.5
  15. Git commit: 74b1e89
  16. Built: Thu Jul 25 21:19:36 2019
  17. OS/Arch: linux/amd64
  18. Experimental: false
  19. containerd:
  20. Version: 1.2.6
  21. GitCommit: 894b81a4b802e4eb2a91d1ce216b8817763c29fb
  22. runc:
  23. Version: 1.0.0-rc8
  24. GitCommit: 425e105d5a03fabd737a126ad93d62a9eeede87f
  25. docker-init:
  26. Version: 0.18.0
  27. GitCommit: fec3683
  28. [root@cc ~]#

安装Gitlab

接下来我们就开始我们的重头戏,在docker中安装gitlab。

在docker中安装gitlab的方式有两种,一种是直接用官方提供的gitlab镜像gitlab/gitlab-ce,只需要这一个镜像就能使用 GitLab。这种安装方式也比较简单便捷。
具体的安装步骤可以去官网看看:https://docs.gitlab.com/ee/install/docker.html 或者网上也有很多教程:https://juejin.im/post/5a4c9ff36fb9a04507700fcc ,这里我就不多介绍了。

但是我更加推荐使用sameersbn 提供的sameersbn/gitlab,它将GitLab 分成了三个不同的镜像:数据库、日志、GitLab 服务,这样做的好处便于解耦,以及符合 Docker 的设计原理:轻量级、单一的镜像功能。在此,我们使用sameersbn/gitlab,并结合提供的 Docker Compose 文件来启动 GitLab。
我们可以参考它的github:https://github.com/sameersbn/docker-gitlab

所以本文介绍的就是通过sameersbn 提供的sameersbn/gitlab去安装gitlab。

安装docker-compose

首先执行以下命令

  1. [root@cc ~]# docker-compose
  2. -bash: docker-compose: 未找到命令

可以发现我们没有安装 docker-compose,所以我们可以参考官网 https://docs.docker.com/compose/install/

在这里插入图片描述

然后我们根据官网去安装。

  1. sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
  2. sudo chmod +x /usr/local/bin/docker-compose
  3. [root@cc ~]# docker-compose --version
  4. docker-compose version 1.24.1, build 4667896b

然后我们的docker-compose就安装完成了。

下载docker-compose.yml

下载docker-compose.yml文件下载到本机,参考https://github.com/sameersbn/docker-gitlab 中的Quick Start,我们下载这个文件。

  1. wget https://raw.githubusercontent.com/sameersbn/docker-gitlab/master/docker-compose.yml

在这里插入图片描述

启动gitlab

  1. docker-compose up
  2. [root@cc ~]# docker-compose up
  3. Creating network "root_default" with the default driver
  4. Pulling redis (sameersbn/redis:4.0.9-2)...
  5. 4.0.9-2: Pulling from sameersbn/redis
  6. 84ed7d2f608f: Pull complete
  7. be2bf1c4a48d: Pull complete
  8. a5bdc6303093: Pull complete
  9. e9055237d68d: Pull complete
  10. 4dd2cea14658: Pull complete
  11. f8fc4c3c626c: Pull complete
  12. Digest: sha256:959ce87c35a2c2277ba34021b5e1f3139ccdd8a0d40a13cf71e4ac500a0c2070
  13. Status: Downloaded newer image for sameersbn/redis:4.0.9-2
  14. Pulling postgresql (sameersbn/postgresql:10-2)...
  15. 10-2: Pulling from sameersbn/postgresql
  16. 5b7339215d1d: Pull complete
  17. 14ca88e9f672: Pull complete
  18. a31c3b1caad4: Pull complete
  19. b054a26005b7: Pull complete
  20. 5f6e1c365669: Pull complete
  21. 979542228097: Pull complete
  22. 528cc46fecb1: Pull complete
  23. d5bfe52148d6: Pull complete
  24. 0e9edf9b0470: Pull complete
  25. 73a0cb75af02: Pull complete
  26. Digest: sha256:eb92661187f61289e6ce287774c2e4933149a5d7ab4f35302be609c620746a4d
  27. Status: Downloaded newer image for sameersbn/postgresql:10-2
  28. Pulling gitlab (sameersbn/gitlab:12.0.4)...
  29. 12.0.4: Pulling from sameersbn/gitlab
  30. 34667c7e4631: Pull complete
  31. d18d76a881a4: Pull complete
  32. 119c7358fbfc: Pull complete
  33. 2aaf13f3eff0: Pull complete
  34. 528402de3115: Pull complete
  35. 6bde7bd62c81: Pull complete
  36. d42b0464084a: Pull complete
  37. 54e2034f3464: Pull complete
  38. c7f6f9e9642a: Pull complete
  39. Digest: sha256:0b9b73b896de60a065c91aa1e589700752d03230d47dd9cc698e9be900c1a94b
  40. Status: Downloaded newer image for sameersbn/gitlab:12.0.4
  41. Creating root_redis_1 ... done
  42. Creating root_postgresql_1 ... done
  43. Creating root_gitlab_1 ... done
  44. Attaching to root_redis_1, root_postgresql_1, root_gitlab_1
  45. redis_1 | Starting redis-server...
  46. redis_1 | 1:C 11 Aug 05:38:38.141 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
  47. redis_1 | 1:C 11 Aug 05:38:38.141 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=1, just started
  48. redis_1 | 1:C 11 Aug 05:38:38.141 # Configuration loaded
  49. redis_1 | 1:M 11 Aug 05:38:38.146 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
  50. redis_1 | 1:M 11 Aug 05:38:38.146 # Server initialized
  51. redis_1 | 1:M 11 Aug 05:38:38.147 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
  52. redis_1 | 1:M 11 Aug 05:38:38.148 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
  53. postgresql_1 | Initializing datadir...
  54. postgresql_1 | Initializing certdir...
  55. postgresql_1 | Initializing logdir...
  56. postgresql_1 | Initializing rundir...
  57. postgresql_1 | Setting resolv.conf ACLs...
  58. postgresql_1 | Initializing database...
  59. gitlab_1 | Loading /etc/docker-gitlab/runtime/env-defaults
  60. gitlab_1 | Initializing logdir...
  61. gitlab_1 | Initializing datadir...
  62. gitlab_1 | Generating OpenSSH host keys... RSA DSA ECDSA ED25519
  63. gitlab_1 | Installing configuration templates...
  64. gitlab_1 | Configuring gitlab...
  65. postgresql_1 | Configuring hot standby...
  66. postgresql_1 | Setting postgresql.conf parameter: wal_level = 'hot_standby'
  67. postgresql_1 | Setting postgresql.conf parameter: max_wal_senders = '16'
  68. postgresql_1 | Setting postgresql.conf parameter: checkpoint_segments = '8'
  69. postgresql_1 | Setting postgresql.conf parameter: wal_keep_segments = '32'
  70. postgresql_1 | Setting postgresql.conf parameter: hot_standby = 'on'
  71. postgresql_1 | Setting postgresql.conf parameter: data_directory = '/var/lib/postgresql/10/main'
  72. postgresql_1 | Setting postgresql.conf parameter: log_directory = '/var/log/postgresql'
  73. postgresql_1 | Setting postgresql.conf parameter: log_filename = 'postgresql-10-main.log'
  74. postgresql_1 | Setting postgresql.conf parameter: ssl = 'off'
  75. postgresql_1 | Creating database user: gitlab
  76. postgresql_1 | Creating database: gitlabhq_production...
  77. postgresql_1 | Loading pg_trgm extension...
  78. postgresql_1 | Granting access to gitlab user...
  79. postgresql_1 | Starting PostgreSQL 10...
  80. postgresql_1 | 2019-08-11 05:38:47.700 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
  81. postgresql_1 | 2019-08-11 05:38:47.700 UTC [1] LOG: listening on IPv6 address "::", port 5432
  82. postgresql_1 | 2019-08-11 05:38:47.701 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
  83. postgresql_1 | 2019-08-11 05:38:47.719 UTC [208] LOG: database system was shut down at 2019-08-11 05:38:47 UTC
  84. postgresql_1 | 2019-08-11 05:38:47.727 UTC [1] LOG: database system is ready to accept connections
  85. gitlab_1 | Configuring gitlab::database...
  86. gitlab_1 | Configuring gitlab::redis
  87. gitlab_1 | Configuring gitlab::secrets...
  88. gitlab_1 | Configuring gitlab::sidekiq...
  89. gitlab_1 | Configuring gitlab::gitaly...
  90. gitlab_1 | Configuring gitlab::monitoring...
  91. gitlab_1 | Configuring gitlab::gitlab-workhorse...
  92. gitlab_1 | Configuring gitlab::unicorn...
  93. gitlab_1 | Configuring gitlab::timezone...
  94. gitlab_1 | Configuring gitlab::rack_attack...
  95. gitlab_1 | Configuring gitlab::ci...
  96. gitlab_1 | Configuring gitlab::artifacts...
  97. gitlab_1 | Configuring gitlab::lfs...
  98. gitlab_1 | Configuring gitlab::uploads...
  99. gitlab_1 | Configuring gitlab::mattermost...
  100. gitlab_1 | Configuring gitlab::project_features...
  101. gitlab_1 | Configuring gitlab::oauth...
  102. gitlab_1 | Configuring gitlab::ldap...
  103. gitlab_1 | Configuring gitlab::cron_jobs...
  104. gitlab_1 | Configuring gitlab::backups...
  105. gitlab_1 | Configuring gitlab::backups::schedule...
  106. gitlab_1 | Configuring gitlab::registry...
  107. gitlab_1 | Configuring gitlab::pages...
  108. gitlab_1 | Configuring gitlab-shell...
  109. gitlab_1 | Configuring nginx...
  110. gitlab_1 | Configuring nginx::gitlab...
  111. gitlab_1 | Setting up GitLab for firstrun. Please be patient, this could take a while...
  112. gitlab_1 | 2019-08-11 11:08:51,340 CRIT Supervisor running as root (no user in config file)
  113. gitlab_1 | 2019-08-11 11:08:51,340 WARN Included extra file "/etc/supervisor/conf.d/cron.conf" during parsing
  114. gitlab_1 | 2019-08-11 11:08:51,340 WARN Included extra file "/etc/supervisor/conf.d/gitaly.conf" during parsing
  115. gitlab_1 | 2019-08-11 11:08:51,340 WARN Included extra file "/etc/supervisor/conf.d/gitlab-workhorse.conf" during parsing
  116. gitlab_1 | 2019-08-11 11:08:51,340 WARN Included extra file "/etc/supervisor/conf.d/groups.conf" during parsing
  117. gitlab_1 | 2019-08-11 11:08:51,340 WARN Included extra file "/etc/supervisor/conf.d/mail_room.conf" during parsing
  118. gitlab_1 | 2019-08-11 11:08:51,340 WARN Included extra file "/etc/supervisor/conf.d/nginx.conf" during parsing
  119. gitlab_1 | 2019-08-11 11:08:51,340 WARN Included extra file "/etc/supervisor/conf.d/sidekiq.conf" during parsing
  120. gitlab_1 | 2019-08-11 11:08:51,340 WARN Included extra file "/etc/supervisor/conf.d/sshd.conf" during parsing
  121. gitlab_1 | 2019-08-11 11:08:51,340 WARN Included extra file "/etc/supervisor/conf.d/unicorn.conf" during parsing
  122. gitlab_1 | 2019-08-11 11:08:51,386 INFO RPC interface 'supervisor' initialized
  123. gitlab_1 | 2019-08-11 11:08:51,386 CRIT Server 'unix_http_server' running without any HTTP authentication checking
  124. gitlab_1 | 2019-08-11 11:08:51,387 INFO supervisord started with pid 586
  125. gitlab_1 | 2019-08-11 11:08:52,390 INFO spawned: 'gitaly' with pid 600
  126. gitlab_1 | 2019-08-11 11:08:52,392 INFO spawned: 'gitlab-workhorse' with pid 601
  127. gitlab_1 | 2019-08-11 11:08:52,395 INFO spawned: 'unicorn' with pid 602
  128. gitlab_1 | 2019-08-11 11:08:52,397 INFO spawned: 'sidekiq' with pid 603
  129. gitlab_1 | 2019-08-11 11:08:52,401 INFO spawned: 'nginx' with pid 604
  130. gitlab_1 | 2019-08-11 11:08:52,404 INFO spawned: 'sshd' with pid 605
  131. gitlab_1 | 2019-08-11 11:08:52,415 INFO spawned: 'cron' with pid 606
  132. gitlab_1 | 2019-08-11 11:08:53,524 INFO success: gitaly entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
  133. gitlab_1 | 2019-08-11 11:08:53,524 INFO success: gitlab-workhorse entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
  134. gitlab_1 | 2019-08-11 11:08:53,524 INFO success: unicorn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
  135. gitlab_1 | 2019-08-11 11:08:53,524 INFO success: sidekiq entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
  136. gitlab_1 | 2019-08-11 11:08:53,524 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
  137. gitlab_1 | 2019-08-11 11:08:53,524 INFO success: sshd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
  138. gitlab_1 | 2019-08-11 11:08:53,524 INFO success: cron entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
  139. postgresql_1 | 2019-08-11 05:39:21.944 UTC [218] ERROR: relation "feature_gates" does not exist at character 566
  140. postgresql_1 | 2019-08-11 05:39:21.944 UTC [218] STATEMENT: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
  141. postgresql_1 | pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
  142. postgresql_1 | c.collname, col_description(a.attrelid, a.attnum) AS comment
  143. postgresql_1 | FROM pg_attribute a
  144. postgresql_1 | LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  145. postgresql_1 | LEFT JOIN pg_type t ON a.atttypid = t.oid
  146. postgresql_1 | LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
  147. postgresql_1 | WHERE a.attrelid = '"feature_gates"'::regclass
  148. postgresql_1 | AND a.attnum > 0 AND NOT a.attisdropped
  149. postgresql_1 | ORDER BY a.attnum
  150. postgresql_1 |
  151. postgresql_1 | 2019-08-11 05:39:22.181 UTC [219] ERROR: relation "feature_gates" does not exist at character 566
  152. postgresql_1 | 2019-08-11 05:39:22.181 UTC [219] STATEMENT: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
  153. postgresql_1 | pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
  154. postgresql_1 | c.collname, col_description(a.attrelid, a.attnum) AS comment
  155. postgresql_1 | FROM pg_attribute a
  156. postgresql_1 | LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  157. postgresql_1 | LEFT JOIN pg_type t ON a.atttypid = t.oid
  158. postgresql_1 | LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
  159. postgresql_1 | WHERE a.attrelid = '"feature_gates"'::regclass
  160. postgresql_1 | AND a.attnum > 0 AND NOT a.attisdropped
  161. postgresql_1 | ORDER BY a.attnum
  162. postgresql_1 |
  163. postgresql_1 | 2019-08-11 05:39:23.699 UTC [220] ERROR: relation "feature_gates" does not exist at character 566
  164. postgresql_1 | 2019-08-11 05:39:23.699 UTC [220] STATEMENT: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
  165. postgresql_1 | pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
  166. postgresql_1 | c.collname, col_description(a.attrelid, a.attnum) AS comment
  167. postgresql_1 | FROM pg_attribute a
  168. postgresql_1 | LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  169. postgresql_1 | LEFT JOIN pg_type t ON a.atttypid = t.oid
  170. postgresql_1 | LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
  171. postgresql_1 | WHERE a.attrelid = '"feature_gates"'::regclass
  172. postgresql_1 | AND a.attnum > 0 AND NOT a.attisdropped
  173. postgresql_1 | ORDER BY a.attnum
  174. postgresql_1 |
  175. postgresql_1 | 2019-08-11 05:39:28.120 UTC [223] ERROR: database "gitlabhq_production" already exists
  176. postgresql_1 | 2019-08-11 05:39:28.120 UTC [223] STATEMENT: CREATE DATABASE "gitlabhq_production" ENCODING = 'unicode'
  177. gitlab_1 | Database 'gitlabhq_production' already exists
  178. gitlab_1 | Migrating database...
  179. gitlab_1 | Clearing cache...
  180. gitlab_1 | 2019-08-11 11:10:39,810 WARN received SIGTERM indicating exit request
  181. gitlab_1 | 2019-08-11 11:10:39,810 INFO waiting for gitaly, gitlab-workhorse, unicorn, sidekiq, nginx, sshd, cron to die
  182. gitlab_1 | 2019-08-11 11:10:39,814 INFO stopped: cron (terminated by SIGTERM)
  183. gitlab_1 | 2019-08-11 11:10:39,816 INFO stopped: sshd (exit status 0)
  184. gitlab_1 | 2019-08-11 11:10:39,824 INFO stopped: nginx (exit status 0)
  185. gitlab_1 | 2019-08-11 11:10:42,393 INFO stopped: sidekiq (exit status 0)
  186. gitlab_1 | 2019-08-11 11:10:42,414 INFO stopped: gitlab-workhorse (terminated by SIGTERM)
  187. gitlab_1 | 2019-08-11 11:10:43,062 INFO stopped: unicorn (exit status 0)
  188. gitlab_1 | 2019-08-11 11:10:43,062 INFO waiting for gitaly to die
  189. gitlab_1 | 2019-08-11 11:10:43,080 INFO stopped: gitaly (exit status 0)
  190. gitlab_1 | 2019-08-11 11:10:43,323 CRIT Supervisor running as root (no user in config file)
  191. gitlab_1 | 2019-08-11 11:10:43,323 WARN Included extra file "/etc/supervisor/conf.d/cron.conf" during parsing
  192. gitlab_1 | 2019-08-11 11:10:43,323 WARN Included extra file "/etc/supervisor/conf.d/gitaly.conf" during parsing
  193. gitlab_1 | 2019-08-11 11:10:43,323 WARN Included extra file "/etc/supervisor/conf.d/gitlab-workhorse.conf" during parsing
  194. gitlab_1 | 2019-08-11 11:10:43,323 WARN Included extra file "/etc/supervisor/conf.d/groups.conf" during parsing
  195. gitlab_1 | 2019-08-11 11:10:43,323 WARN Included extra file "/etc/supervisor/conf.d/mail_room.conf" during parsing
  196. gitlab_1 | 2019-08-11 11:10:43,323 WARN Included extra file "/etc/supervisor/conf.d/nginx.conf" during parsing
  197. gitlab_1 | 2019-08-11 11:10:43,323 WARN Included extra file "/etc/supervisor/conf.d/sidekiq.conf" during parsing
  198. gitlab_1 | 2019-08-11 11:10:43,323 WARN Included extra file "/etc/supervisor/conf.d/sshd.conf" during parsing
  199. gitlab_1 | 2019-08-11 11:10:43,323 WARN Included extra file "/etc/supervisor/conf.d/unicorn.conf" during parsing
  200. gitlab_1 | 2019-08-11 11:10:43,335 INFO RPC interface 'supervisor' initialized
  201. gitlab_1 | 2019-08-11 11:10:43,335 CRIT Server 'unix_http_server' running without any HTTP authentication checking
  202. gitlab_1 | 2019-08-11 11:10:43,336 INFO supervisord started with pid 1
  203. gitlab_1 | 2019-08-11 11:10:44,339 INFO spawned: 'gitaly' with pid 807
  204. gitlab_1 | 2019-08-11 11:10:44,341 INFO spawned: 'gitlab-workhorse' with pid 808
  205. gitlab_1 | 2019-08-11 11:10:44,344 INFO spawned: 'unicorn' with pid 809
  206. gitlab_1 | 2019-08-11 11:10:44,361 INFO spawned: 'sidekiq' with pid 813
  207. gitlab_1 | 2019-08-11 11:10:44,363 INFO spawned: 'nginx' with pid 814
  208. gitlab_1 | 2019-08-11 11:10:44,365 INFO spawned: 'sshd' with pid 815
  209. gitlab_1 | 2019-08-11 11:10:44,370 INFO spawned: 'cron' with pid 817
  210. gitlab_1 | 2019-08-11 11:10:45,450 INFO success: gitaly entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
  211. gitlab_1 | 2019-08-11 11:10:45,451 INFO success: gitlab-workhorse entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
  212. gitlab_1 | 2019-08-11 11:10:45,451 INFO success: unicorn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
  213. gitlab_1 | 2019-08-11 11:10:45,451 INFO success: sidekiq entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
  214. gitlab_1 | 2019-08-11 11:10:45,451 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
  215. gitlab_1 | 2019-08-11 11:10:45,451 INFO success: sshd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
  216. gitlab_1 | 2019-08-11 11:10:45,451 INFO success: cron entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

登录Gitlab

下载完成后,在浏览器输入虚拟机IP地址+端口10080,出现gitlab页面则启动成功

在这里插入图片描述

进来修改root用户的密码,之后就可以用root的用户名和密码去登录了。

在这里插入图片描述

发表评论

表情:
评论列表 (有 0 条评论,995人围观)

还没有评论,来说两句吧...

相关阅读