Did you manage to solve this problem? I am also having this in a container.
I wonder if I have to create a user in my NAS that matches a user in the docker container for it to be able to write properly. Currently, my share is mounted as the user 'pi'.