gitlab - 在 mac 中安装容器化的 gitlab 实例
问题描述
我正在尝试在我的本地机器(mac OSX)上运行 GitLab 实例。收到以下错误
There was an error running gitlab-ctl reconfigure:
template[/var/opt/gitlab/.gitconfig] (gitlab::users line 40) had an error: Errno::ENOENT: No such file or directory @ rb_sysopen - /var/opt/gitlab/.gitconfig
这是我正在使用的 docker-compose 文件。
version: '3.9'
services:
gitlab:
image: 'gitlab/gitlab-ce:latest'
container_name: 'gitlab'
restart: always
hostname: '$GITLAB_HOST'
ports:
- '9090:80'
- '443:443'
- '222:22'
volumes:
- '$GITLAB_HOME/config:/etc/gitlab'
- '$GITLAB_HOME/logs:/var/log/gitlab'
- '$GITLAB_HOME/data:/var/opt/gitlab'
解决方案
推荐阅读
- android - 按下概览按钮时保持 appBar 的颜色
- python-3.x - 日期频率的箱须图
- python - 如何将 pygame 应用程序转换为 iOS 应用程序
- javascript - 如何在单个提供者中为多个状态对象实现 React useReducer
- java - Java Jackson 总是将一种类型序列化为另一种类型
- swagger - Swagger json 正在显示不需要的模式,例如 .net 核心 Web api 中的默认对象元数据
- javascript - 有没有办法在不使用画布 API 的情况下从图像文件中获取二进制数据?
- amazon-web-services - 使用 Lambda 将大型 CSV 文件导入 DynamoDB 时出错
- python - 交互式 python 中的意外行为
- python - 使用 python/pandas 将数据框展平并加宽?