Skip to content

Docker Permissions on NAS and Special Environments ​

Before changing permissions, identify the runtime user and mount.

  • Baota: Verify the /data host path and read-write setting in container mount configuration, then use the host terminal for the bind mount procedure. Do not recursively change an entire website directory.
  • NAS shared folders: ACLs, inherited permissions, or network filesystems may deny writes. If chown reports Operation not permitted or access is still denied, check the runtime identity, parent directory traversal permissions, and read-write mount settings in NAS permission management. Vendor ACL controls differ; do not enable write access for everyone across a shared folder.
  • Rootless Docker / user namespace remapping: Container UID 10001 may map to a different host UID. Check Security Options in docker info and the daemon's mapping configuration before assigning host ownership. Do not blindly use host chown 10001:10001. For existing volumes, prefer the helper container under the same daemon; investigate mapping or storage permissions if that fails.
  • macOS / Windows Docker Desktop: Check Docker's access to the shared host directory and read-write settings. Do not apply Linux numeric ownership commands directly to these hosts.

Do not use chmod -R 777, permanently run Reader as root, delete the database or volume, or run docker compose down -v to hide this error.

After repair, check logs and readiness.