MySQL image for Docker Toolbox (boot2docker) users.
1.8K
Dockerfile for building a MySQL server.
Yes, there are official builds for MySQL, but if you are running under Docker Toolbox (or boot2docker) and mounting a host directory as a data volume, there's a problem.
This build fixes the problem by changing uid for mysql user so you'll be able to write data to a mounted host directory.
See Docker Hub for available tags.
$ docker pull nkwhr/mysql:latest
$ docker run -d --name db -p 3306:3306 -v /Users/<name>/path:/var/lib/mysql nkwhr/mysql
Content type
Image
Digest
sha256:a26a864af…
Size
92.4 MB
Last updated
almost 11 years ago
docker pull nkwhr/mysql