CIFS Volume in SWARM

Hello, I am new to relatively new to containers/dockers. Currently I have a Swarm setup with three nodes (1 manager and 2 workers) and I am using volumes to mount external SMB/CIFS folders that contain music/movies for airsonic and emby amoong others.

I use the following procedure to create volumes:

docker volume create
–driver local
–opt type=cifs
–opt device=//xxx.xxx.x.xxx/share
–opt o=username=USER,password=PASS,file_mode=0775,dir_mode=0775,uid=xxxx,gid=xxx,vers=2.0
–name ANYNAME

All worked fine with volumes propagating without issues from the manager to the workers, but after upgrading to Portainer 2.5.1 with Docker engine 20.10.7 if I create a new volume the Options in the worker nodes are null instead of containing the options that were created

For example:

docker volume inspect xxx (New Volume)

    "CreatedAt": "2021-06-20T15:58:55-04:00",
    "Driver": "local",
    "Labels": {},
    "Mountpoint": "/var/lib/docker/volumes/xxx/_data",
    "Name": "xxx",
    "Options": null,
    "Scope": "local"

docker volume inspect media (old volume)

    "CreatedAt": "2021-03-01T16:14:09-03:00",
    "Driver": "local",
    "Labels": {},
    "Mountpoint": "/var/lib/docker/volumes/media/_data",
    "Name": "media",
    "Options": {
        "device": "//192.168.x.xxx/media",
        "o": "username=user,password=pass,file_mode=0775,dir_mode=0775,uid=1000,gid=100,vers=2.0",
        "type": "cifs"
    },
    "Scope": "local"

It only happen with new volumes created that are mounting shares from the same servers as before.

Any help would be appreciated.
Regards.

So you problem is particular to swarm networking with portainer, isn’t it?
Did you check wheter the behavior on the cli is still consistant to the previous docker-ce version?

Hello, same behavior in CLI. I don’t know what the problem might be.

Thanks

There is not much I can contribute.

Works flawless on 20.10.6 with this command:

docker volume create \
--driver local \
--opt type=cifs \
--opt device=//xxx.xxx.xxx.xxx/share \
--opt o=username=USER,password=PASS,uid=xxxx,gid=xxx,vers=3.0 \
ANYNAME

Hello I downgraded to 20.10.6 and the options on the nodes are “null”. Don’t know why the new volumes appear that way and the old volumes work fine.