Skip to content

Instantly share code, notes, and snippets.

@leafnode
Created Oct 27, 2020
Embed
What would you like to do?
Run MySQL from docker with port mapping
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