我正在阅读一个Dockerfile - Dockerizing an SSH Service,其中包含以下代码:
ENV NOTVISIBLE "in users profile"
RUN echo "export VISIBLE=now" >> /etc/profile
只是好奇那个的目的是什么?
TIA, Ole
P.S 这里有一篇关于如何避免在Docker容器中运行SSH服务器的文章:https://jpetazzo.github.io/2014/06/23/docker-ssh-considered-evil/
VISIBLE
了吗?特别是在pam设置和每个用户的shell设置中? - Etan ReisnerENV
变量不会在容器中可用,因此你需要将它们复制到/etc/profile
中,而你可以使用指示的格式来完成这个操作。没有任何影响环境的VISIBLE
环境变量。 - markeissler