Set the environment variable source container starts when docker

When the image starts, is automatically performed ~ / .bashrc file, therefore, need to configure the environment variables in the file, so that the mirror is started, the file can be automatically performed, so that environmental variables.

 

vi ~ / .bashrc

----------------------------------------------------------------------------------

# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

Global Definitions the Source #
IF [-f / etc / bashrc]; the then
. / Etc / bashrc
Fi
Export zh_CN.utf8 # Set the LC_ALL = centos docker Chinese character set

----------------------------------------------------------------------------------

 

Guess you like

Origin www.cnblogs.com/adolfmc/p/12219499.html