Created
October 27, 2020 13:59
-
-
Save leafnode/c604f611fa72537cb000d329306a00bb to your computer and use it in GitHub Desktop.
Run MySQL from docker with port mapping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run \ | |
--detach \ | |
--name=[container_name]\ | |
--env="MYSQL_ROOT_PASSWORD=[my_password]" \ | |
--publish 6603:3306 \ | |
--volume=/root/docker/[container_name]/conf.d:/etc/mysql/conf.d \ | |
mysql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment