首页 > 解决方案 > 在 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'

标签: gitlabgitlab-ci

解决方案


推荐阅读