This is the repository for the mysql-docker Docker container implemented for WPLib-Box. It currently provides versions 5.5.59 5.6.39 5.7.21 8.0.3
8.0.3, 8.0 (8.0.3/Dockerfile)
5.7.21, 5.7, latest (5.7.21/Dockerfile)
5.6.39, 5.6 (5.6.39/Dockerfile)
5.5.59, 5.5 (5.5.59/Dockerfile)
If you want to use this container as part of WPLib, then use the Docker Hub method. Or you can use the GitHub method to build and run the container.
A simple docker pull wplib/mysql will pull down the latest version.
start - Spin up a Docker container with the correct runtime configs.
docker run -d --name wplib_mysql_8.0.3 --restart unless-stopped --network wplibbox -p 3306:3306 -v /tmp/sql:/docker-entrypoint-initdb.d -v mysql_data:/var/lib/mysql wplib/mysql:8.0.3
stop - Stop a Docker container.
docker stop wplib_mysql_8.0.3
run - Run a Docker container in the foreground, (all STDOUT and STDERR will go to console). The Container be removed on termination.
docker run --rm --name wplib_mysql_8.0.3 --network wplibbox -p 3306:3306 -v /tmp/sql:/docker-entrypoint-initdb.d -v mysql_data:/var/lib/mysql wplib/mysql:8.0.3
shell - Run a shell, (/bin/bash), within a Docker container.
docker run --rm --name wplib_mysql_8.0.3 -i -t --network wplibbox -p 3306:3306 -v /tmp/sql:/docker-entrypoint-initdb.d -v mysql_data:/var/lib/mysql wplib/mysql:8.0.3 /bin/bash
rm - Remove the Docker container.
docker container rm wplib_mysql_8.0.3
Simply clone this repository to your local machine
git clone https://github.com/wplib/mysql-docker.git
make build - Build Docker images. Build all versions from the base directory or specific versions from each directory.
make list - List already built Docker images. List all versions from the base directory or specific versions from each directory.
make clean - Remove already built Docker images. Remove all versions from the base directory or specific versions from each directory.
make push - Push already built Docker images to Docker Hub, (only for WPLib admins). Push all versions from the base directory or specific versions from each directory.
When you cd into a version directory you can also perform a few more actions.
make start - Spin up a Docker container with the correct runtime configs.
make stop - Stop a Docker container.
make run - Run a Docker container in the foreground, (all STDOUT and STDERR will go to console). The Container be removed on termination.
make shell - Run a shell, (/bin/bash), within a Docker container.
make rm - Remove the Docker container.
Content type
Image
Digest
Size
118.1 MB
Last updated
about 8 years ago
docker pull wplib/mysql