How to update java file permission for elasticsearch running on docker

Hi ,

I see below exception when posting a new elasticsearch template.

{
"error": {
"root_cause": [
{
"type": "access_control_exception",
"reason": "access denied ("java.io.FilePermission" "/app/elk/docker/dev/home_elasticsearch/config/analysis/my_synonyms.txt" "read")"
}
],
"type": "access_control_exception",
"reason": "access denied ("java.io.FilePermission" "/app/elk/docker/dev/home_elasticsearch/config/analysis/my_synonyms.txt" "read")"
},
"status": 500
}

I tried the same without docker and it works after updating java.policy file for file permissions.

I am new to docker and feeling it difficult to update the java policy to add new elastic synonyms file.
please help me with this

I am surprised that none of elastic guys know solution on this.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.