Docker Community Forums

Share and learn in the Docker community.

How to set options in stack file for Azure Cloudstor volume?

(Ajviradia) #1

How do I set options in the compose file for Azure volume using Cloudstor driver?

docker service create \
  --replicas 5 \
  --name ping1 \
  --mount type=volume,volume-driver=cloudstor:azure,source=sharedvol1,destination=/shareddata,volume-opt=uid=1000,volume-opt=share=sharedvol \
  alpine ping

Can someone convert above example for stack submission to swarm?