> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/server/server-management/automated-mariadb-deployment-and-administration/docker-and-mariadb/mariadb-enterprise-docker-registry-for-mariadb-enterprise-server.md).

# MariaDB Enterprise Docker Registry for MariaDB Enterprise Server

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

MariaDB Corporation provides the MariaDB Enterprise Docker Registry. The MariaDB Enterprise Docker Registry provides Docker images for MariaDB Enterprise Server. These images are generally available (GA) and supported for production use.

This page contains reference material for the MariaDB Enterprise Docker Registry.

The reference material on this page applies to MariaDB Enterprise Server 10.6 and later.

## Details

Docker is an open platform for developing, shipping, and running applications that allows you to separate your applications from your infrastructure.

MariaDB Corporation provides the MariaDB Enterprise Docker Registry. The MariaDB Enterprise Docker Registry provides Docker images for MariaDB Enterprise Server.

For examples that show how to use the Docker images in the MariaDB Enterprise Docker Registry for MariaDB Enterprise Server, see [Examples](#examples).

Other details are listed in the sections below.

* [Versions](#versions)
* [Storage Engines](#storage-engines)
* [Plugins](#plugins)
* [Repositories](#repositories)
* [Tags](#tags)

### Versions

The MariaDB Enterprise Docker Registry provides Docker images for **MariaDB Enterprise Server 10.6 and later**.

### Storage Engines

The Docker images for MariaDB Enterprise Server include all storage engines that are installed with MariaDB Enterprise Server by default. The following storage engines are included:

* [Aria](https://mariadb.com/docs/server/server-usage/storage-engines/aria.md)
* [CSV](https://mariadb.com/docs/server/server-usage/storage-engines/csv.md)
* [InnoDB](https://mariadb.com/docs/server/server-usage/storage-engines/innodb.md)
* [MEMORY](https://mariadb.com/docs/server/server-usage/storage-engines/memory-storage-engine.md)
* [MRG\_MYISAM](https://mariadb.com/docs/server/server-usage/storage-engines/merge.md)
* [MyISAM](https://mariadb.com/docs/server/server-usage/storage-engines/myisam-storage-engine.md)
* [PERFORMANCE\_SCHEMA](https://mariadb.com/docs/server/server-usage/storage-engines/performance_schema-storage-engine.md)
* [SEQUENCE](https://mariadb.com/docs/server/server-usage/storage-engines/sequence-storage-engine.md)

You can check which storage engines are installed by connecting to the Docker container and executing the [SHOW ENGINES](https://mariadb.com/docs/server/reference/sql-statements/administrative-sql-statements/show/show-engines.md) statement.

### Plugins

The Docker images for MariaDB Enterprise Server include all plugins that are installed with MariaDB Enterprise Server by default.

You can check which plugins are installed by connecting to the Docker container and executing the [SHOW PLUGINS](https://mariadb.com/docs/server/reference/sql-statements/administrative-sql-statements/show/show-plugins.md) statement.

The container contains shared libraries for additional plugins that can be installed with the [INSTALL SONAME](https://mariadb.com/docs/server/reference/sql-statements/administrative-sql-statements/plugin-sql-statements/install-soname.md) statement or the [--plugin-load-add](https://mariadb.com/docs/server/server-management/starting-and-stopping-mariadb/mariadbd-options.md#plugin-load-add) command-line option. You can check which plugins are available by querying the [information\_schema.ALL\_PLUGINS](https://mariadb.com/docs/server/reference/system-tables/information-schema/information-schema-tables/all-plugins-table-information-schema.md) table:

```sql
SELECT PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_LIBRARY
FROM information_schema.ALL_PLUGINS
WHERE PLUGIN_STATUS = 'NOT INSTALLED';
```

The available plugins differ between releases and between image tiers. For example, the `-standard` images also include the S3 storage engine, HashiCorp Key Management, and cracklib password check plugins. The following output is from the default `12.3` image:

```
+--------------------------------+----------------+-------------------------+
| PLUGIN_NAME                    | PLUGIN_VERSION | PLUGIN_LIBRARY          |
+--------------------------------+----------------+-------------------------+
| SQL_ERROR_LOG                  | 1.0            | sql_errlog.so           |
| raft                           | 1.0            | raft.so                 |
| RAFT_LATENCY_STATS             | 1.0            | raft.so                 |
| RAFT_CERT_FAILURES             | 1.0            | raft.so                 |
| RAFT_CLUSTER_CONNECTIONS       | 1.0            | raft.so                 |
| RAFT_TIMERS                    | 1.0            | raft.so                 |
| RAFT_RPC_SENT                  | 1.0            | raft.so                 |
| RAFT_SERVER_INSTANCES          | 1.0            | raft.so                 |
| RAFT_FOLLOWER_INFO             | 1.0            | raft.so                 |
| RAFT_STATUS                    | 1.0            | raft.so                 |
| file_key_management            | 2.0            | file_key_management.so  |
| file_key_management_keys       | 2.0            | file_key_management.so  |
| password_reuse_check           | 2.0            | password_reuse_check.so |
| QUERY_RESPONSE_TIME            | 1.0            | query_response_time.so  |
| QUERY_RESPONSE_TIME_READ       | 1.0            | query_response_time.so  |
| QUERY_RESPONSE_TIME_WRITE      | 1.0            | query_response_time.so  |
| QUERY_RESPONSE_TIME_READ_WRITE | 1.0            | query_response_time.so  |
| QUERY_RESPONSE_TIME_AUDIT      | 1.0            | query_response_time.so  |
| pam                            | 1.0            | auth_pam_v1.so          |
| METADATA_LOCK_INFO             | 0.1            | metadata_lock_info.so   |
| LOCALES                        | 1.0            | locales.so              |
| SERVER_AUDIT                   | 1.8            | server_audit.so         |
| pam                            | 2.0            | auth_pam.so             |
| caching_sha2_password          | 1.0            | auth_mysql_sha2.so      |
| parsec                         | 1.0            | auth_parsec.so          |
| BLACKHOLE                      | 1.0            | ha_blackhole.so         |
+--------------------------------+----------------+-------------------------+
```

### Repositories

The images for MariaDB Enterprise Server are in the `enterprise-server` repository of the MariaDB Enterprise Docker Registry. The registry also has repositories for other products, such as MariaDB MaxScale and MariaDB Enterprise Kubernetes Operator. For those images, see [Docker Images](https://mariadb.com/docs/tools/enterprise/mariadb-enterprise-operator/docker-images.md).

### Tags

The `enterprise-server` repository in the MariaDB Enterprise Docker Registry contains images for different MariaDB Enterprise Server releases using specific tags:

| Type of release?        | Tags                                                                                                              | Description                                                                                                                                                                                                                                                                                                                                                                                                  |
| ----------------------- | ----------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Latest release series   | <ul><li><code>latest</code></li></ul>                                                                             | This tag refers to the most recent image for the latest MariaDB Enterprise Server release series.                                                                                                                                                                                                                                                                                                            |
| Specific release series | <ul><li><code>12.3</code></li><li><code>11.8</code></li><li><code>11.4</code></li><li><code>10.6</code></li></ul> | These tags refer to the images for the most recent minor release of each specific MariaDB Enterprise Server release series.                                                                                                                                                                                                                                                                                  |
| Specific minor release  | <ul><li><code>11.8.3-1</code></li><li><code>11.4.8-5</code></li><li><code>10.6.23-19</code></li></ul>             | These tags refer to images for specific MariaDB Enterprise Server minor releases. The listed tags are examples of minor releases. For a full list of minor releases, see [MariaDB Enterprise Server All Releases](https://mariadb.com/docs/release-notes/enterprise-server/all-releases.md).                                                                                                                 |
| Specific tier           | <ul><li><code>12.3-standard</code></li><li><code>11.8.8-5-minimal</code></li></ul>                                | Add `-minimal` or `-standard` to a release series or minor release tag to choose an image tier. A tag without a tier suffix refers to the `minimal` tier. The `latest` tag has no tier variants. For what each tier contains, see [MariaDB Enterprise Server Tiered Images](https://mariadb.com/docs/tools/enterprise/mariadb-enterprise-operator/docker-images.md#mariadb-enterprise-server-tiered-images). |

{% hint style="info" %}
The version numbers in the **Specific minor release** row are examples, not a complete or current list. For every MariaDB Enterprise Server release, see [MariaDB Enterprise Server All Releases](https://mariadb.com/docs/release-notes/enterprise-server/all-releases.md).
{% endhint %}

{% hint style="warning" %}
Starting with the 10.6.25-21.1, 11.4.10-7.1, and 11.8.6-3.1 images, and in every 12.3 image, a tag without a tier suffix, such as `11.8` or `latest`, refers to the `minimal` tier. Earlier images had no tiers and were closer to the current `standard` tier. The `minimal` tier leaves out the MariaDB utilities, such as `mariadb-admin`, as well as Perl and plugins such as S3, HashiCorp Key Management, and Cracklib Password Check. If you need any of these, use a `-standard` tag.
{% endhint %}

## Examples

* [Connect to Container with Docker Bridge Networking](#connect-to-container-with-docker-bridge-networking)
* [Connect to Container with Host Networking](#connect-to-container-with-host-networking)
* [Create a Container with Docker Bridge Networking](#create-a-container-with-docker-bridge-networking)
* [Create a Container with Host Networking](#create-a-container-with-host-networking)
* [Environment Variables](#environment-variables)
* [Inspect Container](#inspect-container)
* [Log In to Docker Registry](#log-in-to-docker-registry)
* [Obtain a Shell in Container](#obtain-a-shell-in-container)
* [Pull Docker Image](#pull-docker-image)
* [Remove Container](#remove-container)
* [Stop Container](#stop-container)
* [View Container Logs](#view-container-logs)

### Connect to Container with Docker Bridge Networking

To connect to a Docker container that uses Docker bridge networking, execute [MariaDB Client](https://mariadb.com/docs/server/clients-and-utilities/mariadb-client.md) on the container using [`docker exec`](https://docs.docker.com/engine/reference/commandline/exec/):

```bash
docker exec --interactive --tty \
   mariadb-es-11.4 \
   mariadb \
   --user=root \
   --password
```

To confirm the client is connected to the Docker container and the container is using the correct version of MariaDB Enterprise Server, query the [version](https://mariadb.com/docs/server/server-management/variables-and-modes/server-system-variables.md#version) system variable with the [SHOW GLOBAL VARIABLES](https://mariadb.com/docs/server/reference/sql-statements/administrative-sql-statements/show/show-variables.md) statement:

```sql
SHOW GLOBAL VARIABLES
   LIKE 'version'\G
```

```
*************************** 1. row ***************************
Variable_name: version
        Value: 11.4.5-3-MariaDB-enterprise-log
```

To exit the container, use `exit`:

```bash
exit
```

```
Bye
```

The example above shows how to connect to a Docker container using MariaDB Client on the container, but you can also connect using MariaDB Client on the host using TCP/IP. You can [inspect the Docker container](#inspect-container) to find the container's IP address and TCP port bindings.

### Connect to Container with Host Networking

To connect to a Docker container that uses host networking, execute [MariaDB Client](https://mariadb.com/docs/server/clients-and-utilities/mariadb-client.md) on the host node and specify the host's IP address and the container's port:

```bash
mariadb --host=192.0.2.1 \
   --port=3307 \
   --user=root \
   --password
```

To confirm the client is connected to the Docker container and the container is using the correct version of MariaDB Enterprise Server, query the [version](https://mariadb.com/docs/server/server-management/variables-and-modes/server-system-variables.md#version) system variable with the [SHOW GLOBAL VARIABLES](https://mariadb.com/docs/server/reference/sql-statements/administrative-sql-statements/show/show-variables.md) statement:

```sql
SHOW GLOBAL VARIABLES
   LIKE 'version'\G
```

```
*************************** 1. row ***************************
Variable_name: version
        Value: 11.8.3-1-MariaDB-enterprise-log
```

To exit the container, use `exit`:

```bash
exit
```

```
Bye
```

### Create a Container with Docker Bridge Networking

By default, Docker containers use Docker bridge networking. To make connecting to the container easier, Docker can use port bindings to publish the container's TCP ports to the host.

To create a Docker container using Docker bridge networking, execute [`docker run`](https://docs.docker.com/engine/reference/commandline/run/):

```bash
docker run --detach \
   --name mariadb-es-11.8 \
   --env MARIADB_ROOT_PASSWORD='Password123!' \
   --publish '3307:3306/tcp' \
   docker.mariadb.com/enterprise-server:11.8 \
   --log-bin=mariadb-bin \
   <other mariadbd command-line options>
```

```
3082ab69e565be21c6157bb5a3d8c849ec03a2c51576778ac417a8a3aa9e7537
```

* Configure the container using [environment variables](#environment-variables) by setting the `--env` command-line option.
* Configure TCP port bindings for the container by setting the `--publish` or `--publish-all` command-line options.
* Configure MariaDB Enterprise Server by setting [mariadbd command-line options](https://mariadb.com/docs/server/server-management/starting-and-stopping-mariadb/mariadbd-options.md).

To confirm the Docker container is running, execute [`docker ps`](https://docs.docker.com/engine/reference/commandline/ps/):

```bash
docker ps \
   --all \
   --filter ancestor='docker.mariadb.com/enterprise-server:11.8'
```

```
CONTAINER ID   IMAGE                                         COMMAND                  CREATED          STATUS                      PORTS      NAMES
3082ab69e565   docker.mariadb.com/enterprise-server:11.8   "docker-entrypoint.s…"   12 seconds ago   Up 11 seconds               3306/tcp   mariadb-es-11.8
```

### Create a Container with Host Networking

A Docker container can be configured to use the host operating system's network.

To create a Docker container using host networking, execute [`docker run`](https://docs.docker.com/engine/reference/commandline/run/) and specify the `--network host` option:

```bash
docker run --detach \
   --network host \
   --name mariadb-es-11.8 \
   --env MARIADB_ROOT_PASSWORD='Password123!' \
   docker.mariadb.com/enterprise-server:11.8 \
   --port=3307 \
   --log-bin=mariadb-bin \
   <other mariadbd command-line options>
```

```
3082ab69e565be21c6157bb5a3d8c849ec03a2c51576778ac417a8a3aa9e7537
```

* Configure the container using [environment variables](#environment-variables) by setting the `--env` command-line option.
* Configure the port for MariaDB Enterprise Server by setting the [--port](https://mariadb.com/docs/server/mariadb-quickstart-guides/mariadb-connecting-guide.md#port) command-line option.
* Configure MariaDB Enterprise Server by setting [mariadbd command-line options](https://mariadb.com/docs/server/server-management/starting-and-stopping-mariadb/mariadbd-options.md).

To confirm the Docker container is running, execute [`docker ps`](https://docs.docker.com/engine/reference/commandline/ps/):

```bash
docker ps \
   --all \
   --filter ancestor='docker.mariadb.com/enterprise-server:11.8'
```

### Environment Variables

A Docker container can be configured with environment variables when it initializes, for example to set the password for the `root` database user, or to create a custom database and a user account for it.

For the full list of environment variables, see [MariaDB Docker Image Environment Variables](https://mariadb.com/docs/server/server-management/automated-mariadb-deployment-and-administration/docker-and-mariadb/mariadb-server-docker-official-image-environment-variables.md). That page also shows which variables the Enterprise Server images support, and from which release.

{% hint style="warning" %}
The images enforce a [password policy](https://mariadb.com/docs/server/server-management/automated-mariadb-deployment-and-administration/docker-and-mariadb/mariadb-server-docker-official-image-environment-variables.md#password-policy-in-the-enterprise-server-images). If a password set by an environment variable doesn't meet it, initialization fails and the container exits.
{% endhint %}

To create a Docker container using environment variables, execute [`docker run`](https://docs.docker.com/engine/reference/commandline/run/), environment variables and specify each environment variable using the `--env` option:

```bash
docker run --detach \
   --network host \
   --name mariadb-es-11.8 \
   --env MARIADB_ROOT_PASSWORD='Password123!' \
   docker.mariadb.com/enterprise-server:11.8
```

```
3082ab69e565be21c6157bb5a3d8c849ec03a2c51576778ac417a8a3aa9e7537
```

### Inspect Container

A Docker contained can be inspected to find out internal details about the container, such as the following details:

* IP addresses
* MAC addresses
* Port bindings

To inspect all internal details about a Docker container, execute [`docker inspect`](https://docs.docker.com/engine/reference/commandline/inspect/):

```bash
docker inspect mariadb-es-11.8
```

```json
[
    {
        "Id": "d784a193ad828cbd3db10dfbef3e3b7274465fa587453c3f6e2e27703b361173",
        "Created": "2021-10-13T20:25:04.994759266Z",
        "Path": "docker-entrypoint.sh",
        "Args": [
            "--log-bin=mariadb-bin"
        ],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 33714,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2021-10-13T20:25:05.32049779Z",
            "FinishedAt": "0001-01-01T00:00:00Z"
        },
        ..
    }
]
```

To inspect a specific internal detail about a Docker container, execute [`docker inspect`](https://docs.docker.com/engine/reference/commandline/inspect/) and specify a filter using the `--format` option. Some examples are shown below.

To inspect the container's IP address:

```bash
docker inspect \
   --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' \
   mariadb-es-11.8
```

```
172.17.0.3
```

To inspect the container's TCP port bindings:

```bash
docker inspect \
   --format='{{range $p, $conf := .NetworkSettings.Ports}}Container port: {{$p}} -> Host port: {{(index $conf 0).HostPort}} {{end}}' \
   mariadb-es-11.8
```

```
Container port: 3306/tcp -> Host port: 3307
```

### Log In to Docker Registry

To log in to the MariaDB Enterprise Docker Registry, execute [`docker login`](https://docs.docker.com/engine/reference/commandline/login/):

```bash
docker login docker.mariadb.com
```

When prompted, enter the login details:

* As the user name, enter the email address associated with your [MariaDB ID](https://id.mariadb.com/).
* As the password, enter your [Customer Download Token](https://mariadb.com/docs/server/server-management/install-and-upgrade-mariadb/installing-enterprise-server/token.md).

The login details will be saved.

To confirm the login details were saved, check the `~/.docker/config.json` file for a JSON object named `"docker.mariadb.com"` inside an `"auths"` parent JSON object:

```bash
cat ~/.docker/config.json
{
   "auths": {
      "docker.mariadb.com": {
         "auth": "<auth_hash>"
      }
   }
}
```

### Obtain a Shell in Container

To obtain a shell in the Docker container, execute the shell on the container using [`docker exec`](https://docs.docker.com/engine/reference/commandline/exec/):

```bash
docker exec --interactive --tty \
   mariadb-es-11.8 \
   bash
```

### Pull Docker Image

To pull a Docker image with the [appropriate tag](#tags), execute [`docker pull`](https://docs.docker.com/engine/reference/commandline/pull/):

```bash
docker pull docker.mariadb.com/enterprise-server:11.8
```

```
11.8: Pulling from enterprise-server
5d87d5506868: Pull complete
Digest: sha256:68795ca747901e3402e30dab71d6d8bc72bce727db3b9e4888979468be77d250
Status: Downloaded newer image for docker.mariadb.com/enterprise-server:11.8
docker.mariadb.com/enterprise-server:11.8
```

To confirm the Docker image has been pulled, execute [`docker images`](https://docs.docker.com/engine/reference/commandline/images/):

```bash
docker images \
   --filter=reference='docker.mariadb.com/enterprise-server'
```

```
REPOSITORY                             TAG       IMAGE ID       CREATED        SIZE
docker.mariadb.com/enterprise-server   11.8      dd17291aa340   3 months ago   451MB
```

### Remove Container

To remove a Docker container, execute [`docker rm`](https://docs.docker.com/engine/reference/commandline/rm/):

```bash
docker rm mariadb-es-11.8
```

```
mariadb-es-11.8
```

To confirm the container is removed, execute [`docker ps`](https://docs.docker.com/engine/reference/commandline/ps/):

```bash
docker ps \
   --all \
   --filter ancestor='docker.mariadb.com/enterprise-server:11.8'
```

```
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES
```

### Stop Container

To stop a Docker container, execute [`docker stop`](https://docs.docker.com/engine/reference/commandline/stop/):

```bash
docker stop mariadb-es-11.8
```

```
mariadb-es-11.8
```

To confirm the container is stopped, execute [`docker ps`](https://docs.docker.com/engine/reference/commandline/ps/):

```bash
docker ps \
   --all \
   --filter ancestor='docker.mariadb.com/enterprise-server:11.8'
```

```
CONTAINER ID   IMAGE                                         COMMAND                  CREATED         STATUS                            PORTS       NAMES
3082ab69e565   docker.mariadb.com/enterprise-server:11.8   "docker-entrypoint.s…"   2 minutes ago   Exited (143) About a minute ago               mariadb-es-11.8
```

### View Container Logs

To view the logs in the Docker container, execute [`docker logs`](https://docs.docker.com/engine/reference/commandline/logs/):

```bash
docker logs mariadb-es-11.8
```

<sub>*This page is licensed: CC BY-SA / Gnu FDL*</sub>

{% @marketo/form formId="4316" %}
