Run Mysql in Docker

docker pull mysql
docker run –name dockerMysqlSrv -e MYSQL_ROOT_PASSWORD=dockerMysqlPass -d mysql
docker run -it –link dockerMysqlSrv:mysql –rm mysql sh -c ‘exec mysql -h”$MYSQL_PORT_3306_TCP_ADDR” -P”$MYSQL_PORT_3306_TCP_PORT” -uroot -p”$MYSQL_ENV_MYSQL_ROOT_PASSWORD”‘

Leave a Reply

Your email address will not be published. Required fields are marked *