make sure the directory is owned by uid:gid frappe:frappe 1000:1000
read this Container Basics
it explains exact error