I'm deploying ElasticSearch inside of a Docker container, which usually run processes as root user. I get "org.elasticsearch.bootstrap.StartupError: java.lang.RuntimeException: can not run elasticsearch as root" error when trying to start ElasticSearch, and there doesn't seem to be a way to get around it (alpha5).
What's the reason ElasticSearch can't run as root? Inside of the docker container things are isolated and root processes are considered safe. I may be able to configure my image to run as non-root but it requires lots of heavy lifting and is anti-pattern to our deployment model.