Azure

Run the Azurite storage emulator in Docker with Rider

Maarten Balliauw Maarten Balliauw
Azure

Azurite, the successor to the deprecated Azure Storage Emulator, runs in Docker with ports 10000-10002 published and a host folder mounted to /data, so each solution keeps its own blobs, queues and tables. Maarten Balliauw wires it into a Rider Docker run configuration.

Key points

  • Azurite supersedes the deprecated Azure Storage Emulator and runs on Windows, Linux and macOS, unlike its Windows-only predecessor.
  • Ports 10000, 10001 and 10002 serve blobs, queues and tables; table support is still marked as preview.
  • Mounting a host folder to /data keeps storage data alive across container restarts.
  • `UseDevelopmentStorage=true` is the shortcut connection string pointing at devstoreaccount1 on 127.0.0.1.
  • The same ports and volume fit in a docker-compose.yml; add the .azurite folder to .gitignore.
  • A Rider Docker Image run configuration with a bind mount launches Azurite per solution, with its own data.

Real-world use

  • An Azure Functions project that needs its own local queue and blob data, isolated from other solutions on the same machine.
  • A team that wants the emulator setup checked into source control so everyone starts with identical storage endpoints.
  • Integration tests for code using `BlobContainerClient` that must run without touching a real storage account.
  • A developer hopping between several solutions who wants each one's blobs preserved instead of wiped on restart.

This summary was generated by the agent from the original post on Maarten Balliauw. The full text and all rights belong to its author and publisher. Go to original

Report this story

Is something wrong with the summary, or do you own this content? Your message comes straight to my inbox.

Type of message

Related stories

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message