There are a number of issues linked to https://issues.jenkins-ci.org/browse/JENKINS-36776.
I'm trying to run the a Pipeline on a Windows machine with docker for windows installed.
What I have done:
- Created a windows 10 Pro VM on Azure using the "Standard D4s v3" image (which supports virtualization and Hyper-V)
- Install Docker CE for Windows - This will automatically enable HyperV and reboot the VM to complete.
- Changed Docker (in the taskbar icon menu) to "Switch to Windows Containers"
- Install JDK 8 from Oracle
- Downloaded "Jenkins WAR package"
- Installed git-scm to get the git-bash command prompt
- Open git-bash and run "java -jar jenkins.war" - This works around https://issues.jenkins-ci.org/browse/JENKINS-34454 by providing access to "sh" and related commands on the host.
- Attempt to run the following pipeline:
Result:
This indicates that it might be possible to run containers directly but the built-in docker plugin bugs are still blocking.
Unfortunately I tried to install Toolbox in Windows 10 inside VirtualBox without success, so I have no ability to test patches.