Invoke docker container from Jenkins pipeline which is also running as docker container on Windows for docker (for Windows 10)

I have installed docker for Windows on Windows 10. Pulled latest Jenkins image and start a container. Jenkins is started up and running.

In my Jenkins pipeline, I m building node application. I want to build this node application through Jenkins pipeline but within another container (docker container running from node and angular image) . I am new to docker and learning. Step by step help would be appreciated.

  • How to create a Docker container of an AngularJS app?
  • How can we add capabilities to a running docker container?
  • How to move docker containers between different hosts
  • How can I connect my container group (scalable container) to my mongodb container (single node) on Bluemix?
  • Can I use docker to provide a simple file overlay over my current system?
  • Docker Service won't start Windows Server 2016
  • Thanks

  • Can't push my own image to IBM Bluemix Registry
  • Docker containers: services vs full applications
  • Access source container from recipient container
  • docker container changes not saving, osx
  • Access KVM VM over the network from a Docker container
  • Fluentd capture stack traces from Docker
  • One Solution collect form web for “Invoke docker container from Jenkins pipeline which is also running as docker container on Windows for docker (for Windows 10)”

    Basically, you need to 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 (in your case a VM running on your Windows):

    docker run -v /var/run/docker.sock:/var/run/docker.sock jenkins:…

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.