4 ms·
So if I have a asp.net Mvc app on IIS backed by sql server express and some NT services. I can package them into a container?
by statictype 10y ago
So if I have a asp.net Mvc app on IIS backed by sql server express and some NT services. I can package them into a container?
- friism 10y agoYes, it works great! I built a sample with MusicStore. It doesn't use ISS (but could), just a self-hosting ASP.NET Core MVC app: https://github.com/friism/Musicstore/ https://github.com/friism/Musicstore/ You might find the SQL Server Dockerfile interesting (hopefully it'll be an image on Hub soon): https://github.com/friism/MusicStore/blob/master/docker/mssql-server-2016-express/Dockerfile https://github.com/friism/MusicStore/blob/master/docker/mssq... Here's now to run it: docker build -t sqlserver:2016 -f .\docker\mssql-server-2016-express\Dockerfile .\docker\mssql-server-2016-express\. docker-compose -f .\src\MusicStore\docker-compose.yml up Open a browser and open http://<ip-of-vm-running-docker>:5000/ http://<ip-of-vm-running-docker>:5000/ IIS runs in both nanoserver and windowsservercore-based containers. Here's and IIS sample image (I suspect Microsoft will be updating it soon): https://hub.docker.com/r/microsoft/iis/ https://hub.docker.com/r/microsoft/iis/
- friism 10y agoHere's a blog post: https://blog.docker.com/2016/09/build-your-first-docker-windows-server-container/ https://blog.docker.com/2016/09/build-your-first-docker-wind...