I have this service…
storage:
image: mcr.microsoft.com/azure-storage/azurite
ports:
"20000:10000"
restart: unless-stopped
volumes:
C:/Data:/hello
I can add data to the Azurite service and I can browse it in the volume via Docker Desktop but I can’t see any files in my local file system – the folder is always empty.
Why isn’t the volume mapped to my file system?
2
Answers
You need to add quotations in your volumes declaration since there are yaml special characters in local path.
Hope this helps. Below is a docker compose file where you can start
Azurite
with volumes. Please create a folder calledstoragedata
at the same directory as your docker compose file exists.