Docker environment variable Error

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.