period
If you’re running it using Docker, that’s a container not a VM. And that IS the way you would want to run it, in a container. They’re easy to set up, easy to use, and easy to maintain.
Yeah but Docker Desktop uses a VM, either in WSL2 or Hyper-V. Docker Engine on Linux doesn’t use a VM and that’s what’s typically used for hosting services.
The way, what was stated, was stated, indicated that docker runs virtual machines. It doesn’t. It runs containers, right?
Docker is a container platform. Docker Engine is the container host for Linux and Docker Desktop uses a virtual machine to run Docker Engine and containers in that VM.
For example, if you use Docker Desktop on Windows, Docker Desktop will run Docker Engine in a WSL2-based VM and then run containers inside that.