How to deploy Docker container automated in Azure Service Fabric with TeamCity?
- Use your build server to create a container image
- From the build server, push the image to a container registry like Docker Hub or Azure Container Registry.
- Deploy a Service Fabric service that uses the image to run a container.
To deploy a container to SF you have deploy a service fabric application.
An application is just a manifest that defines the services and containers that an application is built on.
These links will guide you through this:
- Create your first Service Fabric container application on Windows
- Create your first Service Fabric container application on Linux
Currently there is no way to deploy a container without setup an application on SF and I don't think they will add a similar feature like docker docker run xyz
or kubernetes kubectl run --image=nginx nginx-app
anytime soon.
Applications are the foundations of SF to define how resources are arranged together.
Maybe they could provide a feature to auto create an application for standalone containers, if you really need this, I would suggest you create as a feature request on their GitHub