How to execute a local test with robot framework inside docker and save output into host
Just run a container using:
docker run --name mytests -v /path/to/file/testWithRobot/robottest.robot:/test/robottest.robot dc3dccfee60 robot test/robottest.robot
and grab the contents using the name
we set:
docker cp mytests:/output.xml .docker cp mytests:/log.html .docker cp mytests:/report.html .
Then you can delete the stopped container with:
docker rm mytest
Also, using this approach you won't face file permission and ownership issues.