I tried to set-up Jenkins using docker-compose you provided, and it works but I am unable to use docker commands inside my pipeline, instead receiving error:
Hello there, I hope you are doing well. In my case when I try to run a docker image(docker run hello-world) I get this message:
/var/jenkins_home/workspace/myproject_test@tmp/durable-81e309a3/script.sh: 1: /var/jenkins_home/workspace/myproject_test@tmp/durable-81e309a3/script.sh: docker: Permission denied
a web developer from Egypt. I spend my days with my hands in many different areas of web development from back end programming (PHP / Laravel) to front end
hello I have add this
- /usr/bin/docker-compose:/usr/bin/docker-composeto my docker-compose file but when I run a docker-compose -v get this error to me
use this cmd "whereis docker-compose" to find location of docker-compose befor mapped to jenkins container
I have reinstalled docker-compose and now work
Great article, thank you for sharing.
I tried to set-up Jenkins using docker-compose you provided, and it works but I am unable to use docker commands inside my pipeline, instead receiving error:
I checked again and I have all 3 volumes set correctly.
Any idea what might be the issue?
I managed to solve this by changing one of the volumes to:
Thanks, this helped me
Hello there, I hope you are doing well. In my case when I try to run a docker image(docker run hello-world) I get this message:
/var/jenkins_home/workspace/myproject_test@tmp/durable-81e309a3/script.sh: 1: /var/jenkins_home/workspace/myproject_test@tmp/durable-81e309a3/script.sh: docker: Permission denied
8081is already in use by Docker. I changed to8080:8080and it seems to work.Is the
~/jenkins:/var/jenkins_homereally necessary ? Or can this all exist in Docker ?Thanks it works well.
Big thanks man! its really good tutorial