Docker-compose: mount azure blob as volume

Sven 121 Reputation points
2021-11-08T13:29:26.777+00:00

I am struggling to find the right information on how to mount blob storage as a volume in docker machine. I expect this is kind of basic, and I can mount the blob from the terminal, but as far as I know that is not how volumes are meant to be used from docker. How should I do this?

My docker-compose file looks something like:

version: "3.9"
services:

  test:
    build: .
    image: registry.gitlab.com/my_company/test
    command: test
    volumes:
      - blob:/mount/
      - /local_folder/:/local_folder
    network_mode: bridge

volumes:
  blob:
    driver: ??
    driver_opts:
      share_name: my_blob
      storage_account_name: my_storage_account

I did find a related question on a File Share volume, but that is different then a blob storage I guess?

Azure Container Instances
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
{count} votes

Answer accepted by question author
  1. Anonymous
    2021-11-08T22:52:17.057+00:00

    @Sven Blobfuse is not currently compatible with docker. You should be able to mount it with NFS 3.0 using the standard NFS options in docker.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.