Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We are running MySQL from a Docker container, the container can be started using the following command

499046
Code Block
languagepowershell
docker run -p 3307:3306 --name mysql-populated -e MYSQL_ROOT_PASSWORD=ppp -d mysql-db-populated:latest

parameter

meaning

-p 3307:3306

bind the container port 3306 to host port 3307

--name mysql-populated

the runtime name of the container, can be used instead of image id

-e

an environment variable to be passed into the container

mysql-db-populated:latest

the actual image name, can be found using docker images