如何使用EXEC中的环境变量?
Exec是否有可能通过环境变量控制SSHD_CONFIG的路径?该服务仍应响应sigterm。
ENV SSHD_CONFIG=/var/test/sshd_config
ENTRYPOINT ["/usr/sbin/sshd"]
CMD ["-D" , "-f", "$SSHD_CONFIG"]
据我所知,Openssh没有指定SSHD_CONFIG路径的环境变量。
Is there a possibility with the exec from to be able to control the path of the sshd_config via an environment variable? The service should still respond to a SIGTERM.
ENV SSHD_CONFIG=/var/test/sshd_config
ENTRYPOINT ["/usr/sbin/sshd"]
CMD ["-D" , "-f", "$SSHD_CONFIG"]
As far as I've seen, openssh doesn't have an environment variable that specifies the path of sshd_config.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论