Add some tests for docker integration.
Merge pull request #8834 from cro/dockerio_cleanup

Add some tests for docker integration.