-
Notifications
You must be signed in to change notification settings - Fork 572
gitlab ci dose not work with docker maven plugin #372
Comments
Hello @azizkhami. Could you provide your gitlab configuration? I believe you are not using dind |
I dont know why not work?
|
I believe you need to set the variables the docker host variable: |
in .gitlab-ci.yml file? |
Yes. Like this:
|
@azizkhani Did this solution work for you? |
no
|
Uhm... it looks like you have a different problem now. But I don't know what may be causing this =/. Maybe some maintainer of this library can help you |
yes it works fine 👍 |
@azizkhani Could your provide your solution to make your build work? |
change to DOCKER_HOST: tcp://docker:2375
|
But did you do any change in the .gitlab-ci.yml file that I provided you? What's is your final version? |
yes remove / like this DOCKER_HOST: tcp://docker:2375 |
Oh, I see. Thanks =] |
or in the config.toml mount the volumes like this volumes = ["/var/run/docker.sock:/var/run/docker.sock", "/cache"] |
If anybody encounters the same problem and finds this answer in google, instead of making blind guesses, better take a look at those two links, they are helpful and provide more value than the accepted answer: |
Could you share the link to your GITLAB project |
I want build docker image in gitlab ci but i got this exception
Software:
Full backtrace
The text was updated successfully, but these errors were encountered: