|
|
1
1
The only environment variables documented to be set
是
通常在Dockerfile中,不需要特别设置路径名或用户名,因为这些路径名或用户名位于与主机分离的独立空间中。例如,将“应用程序”放入
|
|
|
2
1
根据 https://www.tldp.org/LDP/abs/html/internalvariables.html :
同样正如本Unix&Linux SE答案中指出的那样 Who sets $USER and $USERNAME environment variables? :
因此,在码头集装箱内的清洁环境中,您可能更愿意依赖
|
|
|
3
0
尝试运行“/bin/bash-i”,这将强制交互模式并执行通常存储环境变量的.profile。 |