Navigation Menu

Skip to content
This repository has been archived by the owner on Oct 13, 2018. It is now read-only.

bodsch/docker-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-mysql

Docker container with an running MySQL Database.

The Container stores there Data at the Hostsystem in the Directory /tmp/docker-data/mysql or in a configured Datadirectory.

Status

Docker Pulls Image Size Build Status

Build

Your can use the included Makefile.

To build the Container: make build

Starts the Container: make run

Starts the Container with Login Shell: make shell

Entering the Container: make exec

Stop (but not kill): make stop

History make history

Docker Hub

You can find the Container also at DockerHub

Versions

  • mariadb 10.1.x

Supported Environmentvars

  • MYSQL_ROOT_PASSWORD (default: randomized generated with $(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1))
  • MYSQL_SYSTEM_USER (default: generated with $(grep user /etc/mysql/my.cnf | cut -d '=' -f 2 | sed 's| ||g'))

Ports

  • 3306