Dockerfile to build a MariaDB Server Image. It has the same configuration variables as the Official MySQL Image
3.4 compiled for individual container monitoring, Cron also installed along with other tools (bash,curl, less, logrotate, mariadb-client, nano, vim) for easier management. It also supports sending to external SMTP servers..Automated builds of the image are available on Docker Hub and is the recommended method of installation.
docker pull tiredofit/mariadb
The quickest way to get started is using docker-compose. See the examples folder for a working docker-compose.yml that can be modified for development or production use.
Set various environment variables to understand the capabilities of this image.
Map persistent storage for access to configuration and data files for backup.
The following directories are used for configuration and can be mapped for persistent storage.
| Directory | Description |
|---|---|
/var/lib/mysql | MySQL Data Directory |
/etc/mysql/conf.d | Optional directory to put .cnf files for additional directives |
Along with the Environment Variables from the Base image, below is the complete list of available options that can be used to customize your installation.
| Parameter | Description |
|---|---|
CHARACTER_SET | Set Default Character set utf8, utf8mb4 (Default utf8mb4) |
MYSQL_ROOT_PASSWORD | Root Password for Instance (e.g. password) |
MYSQL_DATABASE | Optional - Automatically Create Database - Seperate with commas for multiple databases |
MYSQL_USER | Optional - Automatically Assign Username Priveleges to Database (e.g. mysqluser) |
MYSQL_PASSWORD | Password for authentication to above database (e.g. mysqluser) |
The following ports are exposed.
| Port | Description |
|---|---|
3306 | MariaDB Server |
For debugging and maintenance purposes you may want access the containers shell.
docker exec -it (whatever your container name is e.g. mariadb) bash
Content type
Image
Digest
Size
109.7 MB
Last updated
about 7 years ago
docker pull opcache/docker-mariadb