The mysql image requires a MYSQL_ROOT PASSWORD. With docker run, this is simple:
docker run -d -e 'MYSQL_ROOT_PASSWORD=whatever' mysql
However, I am creating the mysql container with a docker-compose.yml file. That said, I still want to enable the user to specify their MYSQL_ROOT_PASSWORD when they run:
e.g., some equivalent of this (which doesn’t work):
docker-compose up -e 'MYSQL_ROOT_PASSWORD=whatever'
Anybody know how to do this?