泊坞窗不在/ etc / profile中运行我的命令

时间:2020-06-24 10:53:25

标签: docker s3fs

我已经构建了一个泊坞窗,并在/ etc / profile中添加了一行代码来获取脚本,但是当泊坞窗启动时,/ etc / profile中的行并没有被执行。

相关的dockfile命令为:

RUN echo "source /etc/profile.d/hadoop_path.sh" >> /etc/profile
ENTRYPOINT /bin/sh -c
CMD /usr/local/bin/s3fs oflow MNT_POINT -o passwd_file=/etc/passwd-s3fs -o url=URL -o allow_other

如果我以交互模式(-it)运行docker,则可以手动获取它, 我还尝试将行添加到/ etc / bashrc中,但仍然无法正常工作,有什么建议吗?

0 个答案:

没有答案