In case anybody else needs this I have created a Microsoft Visual Studio Team Services Agent with Rancher CLI image that can be deployed on Docker.
https://hub.docker.com/r/qtzar/vsts-agent-rancher/
The docker file is available here https://github.com/qtzar/vsts-agent-rancher
If there is any interest I can create a catalog entry for this.