It is an unofficial agreement to use these variables as template variables. They will be replaced at runtime.
Or you can replace them using the -e docker run switch.
For instance:
ENV MYSQL_USER admin ENV MYSQL_PASS **Random** # Replication ENV ENV REPLICATION_MASTER **False** ENV REPLICATION_SLAVE **False**
If you look at the beginning of the script, you will see the following:
if [ "$MYSQL_PASS" = "**Random**" ]; then unset MYSQL_PASS fi PASS=${MYSQL_PASS:-$(pwgen -s 12 1)}
If the value of the variable is **Random** , replace it with a randomly generated password.
source share