You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2022. It is now read-only.
Create a new pod/deployment using the docker.elastic.co/elasticsearch/elasticsearch:5.5.2 image
Pod will fail on creation with /bin/bash: bin/es-docker: Permission denied
Bug Description
The permissions on /usr/share/elasticsearch/bin/es-docker (and parent directories) only allow read and execute for the hard-coded elasticsearch user. This prevents the container from even starting (Permission denied for bin/es-docker file). Even fixing that specific issue, using something like the below, just results in different permissions problems down the line.
FROM docker.elastic.co/elasticsearch/elasticsearch:5.5.2
USER root
RUN chgrp -R 0 /usr/share/elasticsearch && chmod -R g+rx /usr/share/elasticsearch/
USER elasticsearch
Is there no way to run the elasticsearch container on platforms with runtime user IDs?
docker.elastic.co/elasticsearch/elasticsearch:5.5.2docker.elastic.co/elasticsearch/elasticsearch:5.5.2image/bin/bash: bin/es-docker: Permission deniedBug Description
The permissions on
/usr/share/elasticsearch/bin/es-docker(and parent directories) only allow read and execute for the hard-codedelasticsearchuser. This prevents the container from even starting (Permission denied forbin/es-dockerfile). Even fixing that specific issue, using something like the below, just results in different permissions problems down the line.Is there no way to run the
elasticsearchcontainer on platforms with runtime user IDs?