How to invoke docker container from Jenkins pipeline which is running as docker container on Docker For Windows

0 votes
I have installed docker for Windows on Windows 10. So I started off by pulling a Jenkins image and Jenkins is up and running.

I’m building a node application through Jenkins pipeline but within another container. I am new to docker and I can’t figure this out. Any help would be appreciated.

Thanks in advance.
Oct 17, 2018 in DevOps & Agile by Sophie may
• 10,620 points
2,501 views

1 answer to this question.

0 votes

All you need to do is mount the docker socket into the Jenkins container, so that Jenkins can start docker containers by calling the docker engine running in the host machine i.e. your VM. Try this command

docker run -v /var/run/docker.sock:/var/run/docker.sock jenkins
answered Oct 17, 2018 by Tyrion anex
• 8,700 points

Related Questions In DevOps & Agile

0 votes
1 answer
0 votes
2 answers

How to customize the RAM allocation on Docker for Windows?

Try this: docker update --cpu-shares 5120 -m 3000M ...READ MORE

answered Dec 7, 2018 in DevOps & Agile by Maverick
• 10,840 points
5,562 views
0 votes
2 answers
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,020 points
2,739 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP