On my first use of Docker Desktop on my Mac, I pulled MySQL from search bar (for Docker Hub presumably), and hit Run. A dialog appeared asking me for configuration options such as port number. I clicked Run to start the container.
I received an error message, saying:
You need to specify one of the following as an environment variable:
- MYSQL_ROOT_PASSWORD
- MYSQL_ALLOW_EMPTY_PASSWORD
- MYSQL_RANDOM_ROOT_PASSWORD
Unfortunately, being new to Docker in general and to Docker Desktop app specifically, I do not know how to set an environment variable after having already established this container within Docker Desktop app.
- I cannot find a way back to that initial configuration dialog where I vaguely recall seeing options for setting environment variables.
- I cannot find any other settings for my now-existing container.
How does one establish environment variables for an existing container within Docker Desktop?
docker run
- see, e.g. "Start a mysql server instance" on hub.docker.com/_/mysql. hub.docker.com/_/mysql