I’m working with opendistro. It’s working perfectly fine with docker. But I need to setup it for docker root-less.
As anyone ever done it ?
I’m facing issues with ulimits.
In the docker compose :
And my container can’t start due to OCI rlimits type 8.
I have solve this issue by editing this file :
And adding a line :
username - memlock
And now it’s starting but not working.
The container should create files on
/usr/share/elasticsearch/data/ but it won’t.
I have found a solution.
The mounting point was specified in the service config like this :
I had the 755 rights on
To debug the issue I run
chmod 777 /srv/docker/es01
But after my
docker-compose up my folder was back in 755.
I’m not sure to understand why. I have tried to google it, but I didn’t find anything. Does someone have explications or links to help me understand ?
And I work around my problem and I finally fix it using this configuration :
I don’t understand the difference between this 2 configurations and why it solve my problems. Does someone hay any clues why ?