Search code examples
dockerasp.net-coreazure-storage

Connect asp.net core running docker on linux to Azure Storage Emulator running on Windows host


I'm developing a few microservices in asp.net core 2.1. Some of my services use Azure Storage. They are all hosted in Linux containers using Docker and all is well with that. I realize it would be possible to containarize the storage emulator but this is not what I want, I want to connect to the host running it.

My question boils down to; How do I connect my apps to the storage emulator running on my desktop(the host)?

Thanks!


Solution

  • Unfortunately The storage emulator is not a scalable storage service and does not support a large number of concurrent clients.So it might not work for your desired scenario. It is also meant to act and work locally on a machine, not on a network based env(Connecting to the host hosting the emulator). I'd recommend checking this link which showcases the differences between the Azure storage and the Emulator capabilities.

    Since you mentioned that your clients run on Linux, I'd recommend using Azurite, the equivalent of Azure Emulator for Linux, it also runs in Docker. So my suggestion would be to run multiple instances locally and test the app, or use a trial credit offered by Azure to see if it's the best fit.