Skip to content

Commit a005694

Browse files
authored
Use UID for dockerfile to allow runAsNonRoot to be used. (#95390)
Signed-off-by: Michael Montgomery <[email protected]>
1 parent b77fc67 commit a005694

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

distribution/docker/src/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ ENTRYPOINT ["/bin/tini", "--", "/usr/local/bin/docker-entrypoint.sh"]
289289
CMD ["eswrapper"]
290290
<% } %>
291291

292-
USER elasticsearch:root
292+
USER 1000:0
293293

294294
<% if (docker_base == 'iron_bank') { %>
295295
HEALTHCHECK --interval=10s --timeout=5s --start-period=1m --retries=5 CMD curl -I -f --max-time 5 http://localhost:9200 || exit 1

0 commit comments

Comments
 (0)