[#1] 容器启动时刻创建持久化数据目录和修改权限
This commit is contained in:
@@ -31,10 +31,6 @@ COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||
COPY start-es-supervised.sh /usr/local/bin/start-es-supervised.sh
|
||||
RUN chmod +x /usr/local/bin/start-es-supervised.sh
|
||||
|
||||
# 创建数据目录并设置权限
|
||||
RUN mkdir -p /private/argus/log/elasticsearch && \
|
||||
chown -R elasticsearch:elasticsearch /private/argus/log/elasticsearch
|
||||
|
||||
# 保持 root 用户,由 supervisor 管理用户切换
|
||||
USER root
|
||||
|
||||
|
||||
Reference in New Issue
Block a user