前提
由于采用了gitlab的官方docker镜像进行二次开发,我们遇到了很多不可预知的问题,经过修改我们使用了自己的启动脚本,但是发现只要重启容器就会报错,经过查看gitlab镜像的启动脚本(启动脚本为/assets/wrapper
),最终解决方案如下。
报错如下:
admin@MyHost:~$ sudo gitlab-ctl start
fail: alertmanager: runsv not running
fail: gitaly: runsv not running
fail: gitlab-monitor: runsv not running
fail: gitlab-workhorse: runsv not running
fail: logrotate: runsv not running
fail: nginx: runsv not running
fail: node-exporter: runsv not running
fail: postgres-exporter: runsv not running
fail: postgresql: runsv not running
fail: prometheus: runsv not running
fail: redis: runsv not running
fail: redis-exporter: runsv not running
fail: registry: runsv not running
fail: sidekiq: runsv not running
fail: unicorn: runsv not running
搜索到的解决方案为: