Create CIFS volume using local driver and credentials file?

For posterity, a recent Stack Overflow post explains it’s not supported:

It seems the issue here is that the credentials-file is a feature of the wrapper binary “mount.cifs” while docker uses the systemcall SYS_MOUNT itself for mounting the volume

More details at: