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.

  • kubernetes and debugging it in general
  • Managing container dependencies on startup
  • Cannot connect to the Docker daemon at tcp://1.0.1.7:2375. Is the docker daemon running?
  • Windows Server Containers domain account auth
  • Run Docker containers with Jenkins
  • Sharing namespaces within Docker
  • Thanks

  • docker network connect to host second interface
  • How to get docker run to take the directory from the client machine to the host container?
  • Installed Go binary not found in path on Alpine Linux Docker
  • Nodejs development on Docker under Windows 10
  • Understanding Dockerfile CMD/ENTRYPOINT
  • Docker: updating image and registry
  • 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.