I've tried running the above example on Windows 10 home with Docker/virtualbox and on Mac OS X and Docker. It doesn't appear to work on either. The program seems to get killed. Here is an output from an attempt on a Mac using mpi.
===================================================================================
= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
= PID 2821 RUNNING AT 3999d2c13a2e
= EXIT CODE: 9
= CLEANING UP REMAINING PROCESSES
= YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
===================================================================================
YOUR APPLICATION TERMINATED WITH THE EXIT STRING: Killed (signal 9)
This typically refers to a problem with your application.