This repository contains Dockerfile of Percona Server for Docker's automated build.
-
Install Docker.
-
Download automated build from public Docker Hub Registry:
docker pull renothing/mysql:tag
(alternatively, you can build an image from Dockerfile:
docker build -t="renothing/mysql:tag" github.com/renothing/docker-mysql
) default innodb_buffer_pool_size=4g, please specify it before running default root password is "admin" if you didn't specify, please change it letter
docker run -dit --env POOLSIZE=4g --env PASS=yourrootpassword --name mysql -p 3306:3306 renothing/mysql
docker run -it --rm --link mysql:mysql renothing/mysql mysql -uroot -p$password