Is it possible to create a docker container from TFS and deploy a release build to it?
It is able to create a docker container from TFS and integrate with build/Release pipeline. Some tutorials for this area:
- Continuous Deployment with Docker and Build vNext
- Using docker on Windows in VSTS build and release management
However it's not possible to build a Windows 7 Docker Container. If you plan on doing a full installation of Windows 7, you should use a VM. Docker is not meant to be used in that sense.
For more details please refer this similar question: Build a Windows 7 Container