VOOZH about

URL: https://hub.docker.com/r/mariadb/maxscale

⇱ mariadb/maxscale - Docker Image


mariadb/maxscale

Verified Publisher

By MariaDB Corporation

Updated 2 days ago

MariaDB MaxScale - The world's most advanced database proxy.

Image
40

5M+

mariadb/maxscale repository overview

👁 logo

MariaDB MaxScale Docker image

This Docker image runs MariaDB MaxScale. Two image variants can be built:

  1. Tini-based image running on Rocky Linux 8
  2. Minimal image running on Red Hat Universal Base Image 8 Minimal

Building

make build-image MXS_VERSION=<mxs-version>

The resulting image type depends on the Git branch used: rocky8 for Tini-based images, rhel-ubi8 for RHEL-UBI-based images.

For example, to build an image with MaxScale 24.02.1 run make build-image MXS_VERSION=24.02.1.

Running

Pull the latest MaxScale image from docker hub:

docker pull mariadb/maxscale:latest

Run the MaxScale container as "mxs":

docker run -d --rm --name mxs mariadb/maxscale:latest

The default configuration for the container is minimal and only enables the REST API.

The REST API by default listens on port 8989. The default user is "admin" with password "mariadb". Accessing it from the docker host requires a port mapping specified on container startup. The example below shows general information via curl.

docker run -d --rm -p 8989:8989 --name mxs mariadb/maxscale:latest
curl -u admin:mariadb http://localhost:8989/v1/maxscale

See MaxScale documentation for more information about the REST API.

Configure via configuration file

Custom configuration can be given in an additional configuration file (e.g. my-maxscale.cnf). The file needs to be mounted into /etc/maxscale.cnf.d/:

docker run -d --rm -p 8989:8989 --name mxs -v $PWD/my-maxscale.cnf:/etc/maxscale.cnf.d/my-maxscale.cnf mariadb/maxscale:latest

If the [maxscale]-section of the configuration file needs to be altered, the new file should override the default configuration file.

docker run -d --rm -p 8989:8989 --name mxs -v $PWD/my-maxscale.cnf:/etc/maxscale.cnf mariadb/maxscale:latest

MaxScale 25.10 trial version

The MaxScale 25.10 trial image (25.10.2-trial) requires a licence key to run. Generate a licence key, and write it to the maxscale-section in a MaxScale configuration file:

[maxscale]
license_key=<license key contents>

Then, start the MaxScale container with the config file by running docker run -d --rm -p 8989:8989 --name mxs -v $PWD/my-maxscale.cnf:/etc/maxscale.cnf mariadb/maxscale:25.10.2-trial.

Commandline Access

docker exec -it mxs bash

Tag summary

latest

Content type

Image

Digest

sha256:b163bcf7a…

Size

431.2 MB

Last updated

2 days ago

docker pull mariadb/maxscale

This week's pulls

Pulls:

300,836

Last week