mkdir: can't create directory '/appdata/db': Permission denied Is there a way to set the uid/gid that the container runs as? Passing them as env vars did not appear to worknextjs user see your inspection in Config > User above Volumes. For me this field is an empty string: "User": ""