# alpine-mysql **Repository Path**: xmx0632/alpine-mysql ## Basic Information - **Project Name**: alpine-mysql - **Description**: a docker image base on alpine with mysql - **Primary Language**: Shell - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-11-14 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # alpine-mysql a docker image base on alpine with mysql # build image ``` docker build -t wangxian/alpine-mysql . docker run -it --rm -v $(pwd):/app -p 3306:3306 wangxian/alpine-mysql ``` # Usage ``` docker run -it --name mysql -p 3306:3306 -v $(pwd):/app -e MYSQL_DATABASE=admin -e MYSQL_USER=tony -e MYSQL_PASSWORD=dpa\*12d -e MYSQL_ROOT_PASSWORD=111111 wangxian/alpine-mysql ``` It will create a new db, and set mysql root password(default is 111111)