Docker-compose throws an exception when running under a mounted drive

-1

I am running docker on an Ubuntu server and a directory (/mnt/DockerData) mounted to remote NAS throw Samba.

if switch to remotely mounted folder, docker can run and container is running without any issue, but when I try to run by docker-compose, it throw exceptions:

a13519@neptune:/mnt/DockerData/docker/InvesBlog$ docker-compose up
cannot stat path of the current working directory: Permission denied

some observations are:

  1. under remotely mounted folder, docker can run without issue
  2. the mounted folder is writable
  3. if I move the docker-compose.yaml to local folder, docker-compose can run without problem
  4. under remotely mounted folder, docker-compose with or without any options it throws excepton:
cannot stat path of the current working directory: Permission denied

I searched internet but it seems no one encounter this issue, any clues?