I'm new to docker and I want to start using it in the following scenario.
For example, I need to implement an Asp.Net Core Web API and deploy it to a linux system. The development is done on a Windows machine in Visual Studio. My idea is to create a docker image which mimics the target linux system, develop the service and test it in a docker image and then deploy it to the target system without docker.
In other words, I'm going to use docker for the development process, but the application is not going to be containerized in the production.
Is it a reasonable scenario or am I doing something wrong?
Perhaps I was misleading in using the term "service". I didn't mean linux service. What I really meant was Asp.Net Core web service.
I also considered using WSL, but I would need to install additional software like NGINX to test the application. Usually I use a virtual machine (VMWare) in this case. I prepare the target environment in a virtual machine and test my application there, so I don't have to pollute my host system. But virtual machines have a lot of overhead, so I thought that using docker was going to be less taxing.