1 term environment variable not set.
Docker Exec-it/bin/bash goes in to execute clear,top, and the command appears environment variable not set.
That is, the environment variable is not set, the source/root/.bash_profile does not make it necessary to define term variables
Term=linux
Export term or export TERM=VT100 environment variable term is set to terminal, here the vt100,vt220 and so on is to explain the simulation of the product type.
Terminal is a very important peripheral, the people who used the terminal equipment know that if the device type is wrong, there will be random characters, can also be used simulation terminal software such as Netterm test, Linux terminal information under/usr/share/terminfo, In the subdirectory of this directory v there are a lot of such as vt100,vt102,vt200, you can see that.
2 Display bash-4.1#
There is no root environment variable, you can send the host's _bash_profile in, and then source a bit can be
This article from "New One" blog, declined reprint!
Docker environment variable Error