Skip to content

Commit 88d4256

Browse files
author
Alexandre Teilhet
authored
[DL-4654] switch to user cortex while keeping env variables (-m) inside docker container (#63)
1 parent 156e2f5 commit 88d4256

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package/docker/entrypoint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ then
169169

170170
chown -R cortex:cortex "$CONFIG_FILE" /etc/cortex
171171
test -e /var/run/docker.sock && chown cortex:cortex /var/run/docker.sock
172-
su - cortex -c "/opt/cortex/bin/cortex \
172+
su -m cortex -c "/opt/cortex/bin/cortex \
173173
-Dconfig.file=$CONFIG_FILE \
174174
-Dlogger.file=/etc/cortex/logback.xml \
175175
-Dpidfile.path=/dev/null \

0 commit comments

Comments
 (0)