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,250 points

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,020 points
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,140 points

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.