export¶
A new child process forked from a parent process does not inherit parent's variables by default. The export command marks an environment variable to be exported with any newly forked child processes and thus it allows a child process to inherit all marked variables.
unset¶
Shell in Docker
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Configure the Shell for the RUN
Command
https://docs.docker.com/engine/reference/builder/#shell
Configure the Default Shell for Terminals in Docker Containers
Just set the SHELL environment variable in …
Environment Variables in Docker
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Environment Variables
-
It seems that Docker reads neither
/etc/profile
nor/etc/environment
for environment variables. For more details, please refer to the issue setting environment variables in a docker container …