To be precise, MySQL 5.1.71 Docker image.
Based on CentOS 6 image (the latest to have it on it repos). Deprecated as f*ck, both MySQL and CentOS versions. Use at your own risk.
No env variables implemented. Just the MySQL server installed from the repo.
Source code for this image here on GitHub
Just run it and will start the server:
docker run -ti --rm --name mysql -p 3306:3306 ggmartinez/mysql:5.1
You can bring your own my.cnf file, and bind it.
For example, this my.cnf file:
[mysqld]
datadir=/var/lib/mysql
tmpdir = /var/lib/mysql_auxiliar
socket=/var/lib/mysql/mysql.sock
user=mysql
symbolic-links=0
log-error=/dev/stderr
general_log=1
general_log_file=/dev/stdout
log_output=FILE
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
And then bind it:
docker run -ti --rm --name mysql -p 3306:3306 -v /path/to/my.cnf:/etc/my.cnf ggmartinez/mysql:5.1
Or composerize it:
services:
mysql:
image: ggmartinez/mysql:5.1
container_name: mysql
ports:
- "3306:3306"
volumes:
- ./mysql:/var/lib/mysql
- ./my.cnf:/etc/my.cnf
Content type
Image
Digest
sha256:db6468ed7…
Size
118.6 MB
Last updated
over 1 year ago
docker pull ggmartinez/mysql:5.1