sameersbn / docker-gitlab

Dockerized GitLab
http://www.damagehead.com/docker-gitlab/
MIT License
7.83k stars 2.13k forks source link

Error at container startup sed: couldn't open temporary file /home/git/gitlab/config... #2352

Open kofston opened 3 years ago

kofston commented 3 years ago

When I start this container I have an error that disappear at restart

gitlab_1_dabd7146875a | Installing configuration templates...
gitlab_1_dabd7146875a | SSL key and certificates for Registry were not found
gitlab_1_dabd7146875a | Assuming that the Registry is running behind a HTTPS enabled load balancer.
gitlab_1_dabd7146875a | Configuring gitlab...
gitlab_1_dabd7146875a | Configuring gitlab::database
gitlab_1_dabd7146875a | sed: couldn't open temporary file /home/git/gitlab/config/sednyAaZK: Permission denied

Can you give me some advice on how to fix it ?

I read its becouse i not have USERMAP_UID AND USERMAP_GID but after change this from default 1000 to 1010 i have not URL to go and not work all time.

This is my config yml:

gitlab:
  environment:
    DEBUG: 'false'
    GITLAB_PORT: 10083
    GITLAB_SECRETS_DB_KEY_BASE: qcs-gitlab-app
    GITLAB_SECRETS_OTP_KEY_BASE: qcs-gitlab-app
    GITLAB_SECRETS_SECRET_KEY_BASE: qcs-gitlab-app
    GITLAB_SSH_PORT: 10022
  image: sameersbn/gitlab:11.4.0
  links:
  - redis:redisio
  - postgresql:postgresql
  ports:
  - 10083:80
  - '10022:22'
  restart: always
postgresql:
  environment:
    DB_EXTENSION: pg_trgm
    DB_NAME: gitlabhq_production
    DB_PASS: password
    DB_USER: gitlab
  image: sameersbn/postgresql:9.6-2
  restart: always
redis:
  command:
  - --loglevel warning
  image: sameersbn/redis:latest
  restart: always
jostick commented 2 years ago

I currently have the same issue after updating Docker. Any advise? @kofston Did you ever find a solution?