Skip to content

Commit cce5e03

Browse files
committed
Fix permission issue
1 parent 655e808 commit cce5e03

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

distribution/docker/src/docker/Dockerfile.default

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,16 @@ RUN ln -sf /etc/pki/ca-trust/extracted/java/cacerts jdk/lib/security/cacerts
105105

106106
ENV PATH=/usr/share/elasticsearch/bin:\$PATH
107107
ENV SHELL=/bin/bash
108-
COPY bin/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
108+
109109
COPY --chmod=0555 bin/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
110110

111+
RUN chmod g=u /etc/passwd && \\
112+
chmod 0555 /usr/local/bin/docker-entrypoint.sh && \\
113+
find / -xdev -perm -4000 -exec chmod ug-s {} + && \\
114+
chmod 0775 /usr/share/elasticsearch && \\
115+
chown elasticsearch bin config config/jvm.options.d data logs plugins
116+
117+
111118
EXPOSE 9200 9300
112119

113120
LABEL org.label-schema.build-date="${build_date}" \\

0 commit comments

Comments
 (0)