docker image for mariadb based off of alpine:3.12
To pull this image:
docker pull mbentley/mariadb
Example usage:
docker run -d \
-p 3306:3306 \
--name mariadb \
-v mariadb:/var/lib/mysql \
mbentley/mariadb
Optional environment variables:
MYSQL_ROOT_PASSWORD
- (optional; defaults todocker
)root
user password to setMYSQL_DATABASE
- (optional) creates a database with the given nameMYSQL_USER
- (optional) creates a user with access to the value ofMYSQL_DATABASE
MYSQL_PASSWORD
- (optional) sets the password for the userMYSQL_USER
MYSQLD_ARGS
- (optional) arguments passed tomysqld