Docker volume create with local CIFS driver

as for me I “partially” got it to work using a compose file

  wordpress:
    driver: local
    driver_opts:
      type: cifs
      o: vers=3.02,mfsymlinks,username=****,password=*****,domain=****
      device: "//noriko/s/wordpress"
#    name: 'noriko/s/wordpress'
#    driver: cifs

The reason I say partially is I only got it to work in docker-compose but not in docker stack deploy

To make this fully work, I need to use the IP address rather than the host name for the device. In addition, if you improperly built this on the swarm you’d have to go to the worker and docker volume rm from there to make sure it gets recreated.