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
• 9,410 points
193 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,280 points

Related Questions In DevOps & Agile

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 6, 2018 in DevOps & Agile by Maverick
• 10,040 points
67 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 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
• 56,160 points
97 views