In order to write integration tests for RemoteDocker, we need to make the local docker daemon listen on tcp and secure the connection. Resources here and here.
docker-machine may also be helpful in shortening the process, as it creates the certificates automatically. See here.