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.

  • Is docker a solution for making application cross platform?
  • Docker - Is it possible to recreate volume container without recreating the containers that use it
  • error when install tools in docker container
  • How can we add capabilities to a running docker container?
  • Accessing Docker-compose containers hostnames from a container
  • Creating multiple Docker container
  • Thanks

  • How to run Docker container and watch the logs in one single command
  • Docker - How to open a debug port for AEM
  • ERR_EMPTY_RESPONSE in process of Sentry installation with Docker inside VirtualBox
  • Looking for ways and options to stop the worker process after task completion in celery?
  • How to find Docker REST API URI for Jenkins
  • SaltStack master/minion to administrate my database that is inside a container
  • 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.