Samba doesn't care about Unix permissions. Samba runs as root and uses internal users to decide access.

If you are actually using a docker container, then this is a docker startup/configuration...