-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Job failed - gitlab-ci #21
Comments
Maybe try editing your GitLab runner's config file (config.toml) by changing "volumes = ["/cache"]" to "volumes = ["/var/run/docker.sock:/var/run/docker.sock", "/cache"]" and see if that helps? |
I forgot to specify that the approach I suggested just now is based on this: https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#use-docker-socket-binding |
Can you please provide more information: Are you using gitlab.com? Are you using your own cloud-runner? How is it set up? How is docker configured here? |
@programmingworld1 , @tmaier This can happen while using newer docker images like version I faced the issue recently and turns out there is a known "solution" or workaround however. Reason:
Solution/workarounds:According to the Release Note, there are 2 workarounds:
Turn off TLSIf you cannot or do not want to edit the
image: tmaier/docker-compose:19.03
variables:
DOCKER_TLS_CERTDIR: "" Configure TLSIf you are running jobs on a runner that you have write access to the
image: tmaier/docker-compose:19.03
variables:
# Create the certificates inside this directory for both the server
# and client. The certificates used by the client will be created in
# /certs/client so we only need to share this directory with the
# volume mount in `config.toml`.
DOCKER_TLS_CERTDIR: "/certs"` |
Thank you, @abmruman. I hope it solved the issue for @programmingworld1. I am closing this issue |
|
@brice-gros , I came to learn that if you want to use docker-in-docker service, you need a privileged runner. |
I tried configuring TLS, but it didn't work. Problem solved by configuring
|
thanks a lot - @Michael1024-CJX method helped me too |
Hi, I copied and paste the code into the
gitlab-ci.yml
file but it says that the job has failed.. How can I fix this, I have been struggling with gitlab-ci in combination with my project that is docker-composed based.. Please help me out.The text was updated successfully, but these errors were encountered: