July 2018
Intermediate to advanced
504 pages
11h 34m
English
At runtime, environment variables are exposed to the application inside the container. You can set environment variables in a service's containers with the environment key, just like with docker run -e VARIABLE=VALUE. You can also pass environment variables from your shell straight through to a service's containers with the environment key by not giving them a value, just like with docker run -e VARIABLE.
Environment variables are used to set specific application parameters, like IP addresses, for a server to connect the database server address with login credentials.
Some container startup scripts use environment variables to perform the initial configuration of an application.
For example, a ...