For the complete documentation index, see llms.txt. This page is also available as Markdown.

MariaDB Containers

Discusses running MariaDB in Docker containers, covering the benefits of isolation and ease of deployment for development and testing environments.

Containers are an OCI standard format for software images and their specified time all bundled up into a single distributable time. They can be used for production, development or testing.

Docker Inc. run a Docker Official Images program to provide users with an essential base implementation of MariaDB in a container and to exemplify best practices of a container.

The containers are available on Docker Hub as docker.io/library/mariadb though many container runtime implementation will fill in the docker.io/library where the host/path isn't specified.

The containers are in a Open Container Initiative format that allows the containers to be interoperable with a number of container runtime implementations. Docker, or more fully Docker Engine, is just one of the many available runtimes.

Many people use MariaDB Docker Official Image containers in CI systems like GitHub Actions, though its possible to use these in production environments like kubernetes.

The MariaDB Server container images are available with a number of tags:

  • A full version, like 10.11.5

  • A major version like 10.11

  • The most recent stable GA version - latest

  • The most recent stable LTS version - lts

Versions that aren't stable will be suffixed with -rc, or -alpha to clearly show their release status, and enables Renovatebot and other that follow semantic versioning to follow updates.

For a consistent application between testing an production environment using the SHA hash of the image is recommended like docker.io/library/mariadb@sha256:29fe5062baf36bae8ec68f21a3dce4f0372dadc185e687624f1252fc49d91c67. There is a list of mapping and history of tags to SHA hash on the Docker Library repository.

Instructions on how to extend the official MariaDB Docker image by installing additional plugins and dependencies using a custom Dockerfile.

Explains the advantages of using orchestration tools like Kubernetes or Docker Swarm for managing MariaDB containers, including automated failover, scaling, and rolling updates.

Complete container backup guide: docker volume create, mariadb-dump --all-databases, mariadb-backup --backup/--prepare/--copy-back operations.

Discusses security best practices for running MariaDB in containers, addressing topics like root user privileges, volume permissions, and network isolation.

Guide to building a custom MariaDB container image to include specific configuration files, scripts, or pre-loaded data.

Instructions for deploying MariaDB Enterprise Server using the official enterprise Docker images, including handling license keys and entitlements.

How to authenticate with and pull images from the private MariaDB Enterprise Docker Registry.

Specific considerations and steps for running MariaDB Docker containers on Amazon EC2 instances.

Guide for deploying MariaDB containers on Google Cloud Platform (GCP) compute resources.

Instructions for running MariaDB containers within the Microsoft Azure ecosystem.

Answers to common questions regarding the official MariaDB image, covering versioning, tagging, and default configurations.

Complete guide to MariaDB in Docker. Complete resource for container deployment, volume management, networking, and environment setup for production use.

A concise reference of common Docker commands and environment variables used with MariaDB containers.

Complete guide to MariaDB in Docker. Complete resource for container deployment, volume management, networking, and environment setup for production use.

Complete LAMP stack Docker Compose: define docker-compose.yml services (web/mariadb), set volumes/env vars (${MARIADB_VERSION}), docker-compose up/down.

Complete healthcheck.sh Docker reference: --connect, --innodb_initialized, --replication_* checks, .my-healthcheck.cnf config, and environment variables.

Configuration reference for the official MariaDB Enterprise container images — environment variables, command-line flags, and sidecar patterns for production deployments.

Last updated

Was this helpful?