In the previous post I showed how to setup a Dotnet Core WebApi project to run inside docker. In part 2, I’ll go over what is needed to containerize an SQL server and connect the WebApi to it. What do you need? This post assumes you have Docker Community Edition installed on your machine. If not, you can grab a copy from here. Containerizing Microsoft SQL Server Thankfully, Microsoft has created a base image for the SQL server which I will be using in this blog post.
I have been hearing a lot of people talking about docker and all of the benefits it introduces and they got me interested in the technology. However, I only recently managed to get some time to play around with Docker. What I attempted to do was to take a DotNet Core WebApi project that I’m building and containerize it. The WebApi project was build initially with no intention of containerizing and it was surprising how easy it is to get it up and running in docker.