Open Beanow opened 6 years ago
Can you tell give me more details about the environment? What is the volume created? How is the service created?
I'm seeing the same error when trying to build a basic docker image. Here is my swarm compose stanza. The image also needs to be updated to the new 10.x gitlab-runner as the multi-runner has been deprecated.
version: "3.4"
services:
gitlab:
image: gitlab/gitlab-ce:latest
ports:
- 50180:80
- 50122:22
networks:
- gitlab
deploy:
replicas: 1
update_config:
parallelism: 1
delay: 10s
restart_policy:
condition: any
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://example.com/git'
volumes:
- type: bind
source: /opt/docker/gitlab/config
target: /etc/gitlab
- type: bind
source: /opt/docker/gitlab/logs
target: /var/log/gitlab
- type: bind
source: /opt/docker/gitlab/data
target: /var/opt/gitlab
gitlab_runner:
image: sgillespie/gitlab-runner
networks:
- gitlab
deploy:
replicas: 1
update_config:
parallelism: 1
delay: 10s
restart_policy:
condition: any
volumes:
- type: bind
source: /opt/docker/gitlab/config
target: /etc/gitlab
environment:
- REGISTRATION_TOKEN=token
- CI_SERVER_URL=http://gitlab_gitlab/git
- RUNNER_EXECUTOR=shell
- RUNNER_SHELL=bash
networks:
gitlab:
I'm suddenly also getting this error. Any ideas?
Trying to set up CI/CD in swarm mode using this image. Jobs won't run due to the home volume having wrong permissions.
I'll test a couple of ideas to see if I can propose a solution.