SonarQube 9.1 Developer Edition Docker on ECS/Fargate tries to run elasticsearch as root (& fails)

can you post the complete output of the logs resulting in the described error? The privileges get dropped when the container is started as root.

you can also start the container as a none privileged user (the sonarqube user has id 1000). that the privileges are dropped in the run.sh is a precaution mechanism and is not required by sonarqube to run