我正在尝试使用docker创建一个非常简单的Gitlab实例。我有这个docker-compose.yml文件(大部分直接来自文档):
gitlab:
image: gitlab/gitlab-ce:latest
restart: always
hostname: gitlab.${DOMAIN}
ports:
- 8081:8081
environment:
- VIRTUAL_HOST=gitlab.${DOMAIN}
- VIRTUAL_PORT=8081
volumes:
- ${DATA_PATH}/gitlab/config:/etc/gitlab
- ${DATA_PATH}/gitlab/logs:/var/log/gitlab
- ${DATA_PATH}/gitlab/data:/var/opt/gitlab
问题在于,每当我尝试举起这张图片时,我都会收到错误消息:
PG::ConnectionBad: could not connect to server: No such file or directory. Is the server running locally and accepting connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
我正在OSX 10.13.6上运行适用于Mac 18.06.1-ce的Docker
有没有解决的办法?
答案 0 :(得分:0)
所以我修复了它。事实证明,macOS对路径的长度有一个限制(显然是?)。而且我的docker映像超出了此限制。...