解决ssh连接docker容器环境变量无效的问题

在 /etc/profile中添加以下代码即可

for item in `cat /proc/1/environ |tr '\0' '\n'`
do
 export $item
done

 

你可能感兴趣的:(docker)