Created
October 7, 2025 09:39
-
-
Save k8scat/252d0507bbf918a9bc4f61ab60525e0b to your computer and use it in GitHub Desktop.
run mysql80 in a docker container
This file contains hidden or 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 volume create mysql80-data | |
| docker run \ | |
| -e MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD \ | |
| -d --name mysql8 \ | |
| -v mysql8-data:/var/lib/mysql \ | |
| -p 33060:3306 mysql:8.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment