为什么在/ etc / profile中设置VISIBLE = NOW?
我正在读Dockerfile – Dockerizing SSH服务 ,它包含以下代码:
ENV NOTVISIBLE "in users profile" RUN echo "export VISIBLE=now" >> /etc/profile
只是好奇这是什么目的?
TIA,Ole
PS大文章在这里避免在Docker容器中运行SSH服务器的方法: https : //jpetazzo.github.io/2014/06/23/docker-ssh-considered-evil/
这是运行Docker化SSHD服务时如何传递环境variables的一个例子。 SSHD会擦洗环境,因此Dockerfile
包含的ENV
variables必须推送到/etc/profile
才能使用。