Sign inSign up

cheewai/docker-mysql

By cheewai

Updated almost 8 years ago

MySQL server in docker that runs with user-defined UID and GID

Image
0

1.0K

cheewai/docker-mysql repository overview

MySQL server in docker

Uses the official MySQL docker base image but allows the UID/GID of mysql user to be defined.

Official git repo: https://github.com/docker-library/mysql/

Usage

set-mysql-uid.sh only kicks into action when both the following environment variables are set to valid numeric user and group ID, typically, those of the Linux user running the Docker image, so that files and directories created in /var/lib/mysql (in container) are owned and accessible.

  • MYSQL_UID
  • MYSQL_GID

Be default, this entrypoint script passes control to /usr/local/bin/docker-entrypoint.sh unless environment variable MYSQL_ENTRYPOINT points to another script.

Tag summary

Content type

Image

Digest

Size

131.9 MB

Last updated

almost 8 years ago

docker pull cheewai/docker-mysql