{"status":"OK","last_updated":"2026-11-29 15:34:37+00:00","data":{"image":{"name":"mariadb","initial_date":"2015-08-12","github_url":"https://github.com/linuxserver-playground/docker-mariadb","project_url":"https://mariadb.org/","project_logo":"https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/mariadb-git.png","description":"[Mariadb](https://mariadb.org/) is one of the most popular database servers. Made by the original developers of MySQL.","version":"11.8.10-r0-ls10","version_timestamp":"2026-11-29 08:07:00+00:00","category":"Databases","stable":true,"deprecated":false,"stars":0,"tags":[{"tag":"latest","desc":"Stable releases"}],"architectures":[{"arch":"x86_64","tag":"amd64-latest"},{"arch":"arm64","tag":"arm64v8-latest"}],"changelog":[{"date":"2026-07-05","desc":"Rebase to Alpine 3.24."},{"date":"2026-02-14","desc":"Rebase to Alpine 3.23. Add ability to pass CLI options to mariadbd."},{"date":"2025-07-09","desc":"Rebase to Alpine 3.22."},{"date":"2025-01-11","desc":"Add log rotation, follow the instructions in the container log."},{"date":"2025-01-06","desc":"Rebase to Alpine 3.21."},{"date":"2024-05-31","desc":"Rebase to Alpine 3.20."},{"date":"2023-12-23","desc":"Rebase to Alpine 3.19."},{"date":"2023-06-09","desc":"Update lc_messages path in shipped custom.cnf to match upstream."},{"date":"2023-05-25","desc":"Rebase to Alpine 3.18, deprecate armhf."},{"date":"2023-02-04","desc":"Minor updates to defaults in custom.cnf."},{"date":"2023-01-31","desc":"Rebase to 3.17."},{"date":"2022-12-09","desc":"Add upgrade check warning."},{"date":"2022-10-11","desc":"Rebase master to Alpine 3.16, migrate to s6v3, remove password escape logic which caused problems for a small subset of users."},{"date":"2021-07-06","desc":"Rebase master to alpine."},{"date":"2021-07-03","desc":"Rebase to 3.14."},{"date":"2021-02-08","desc":"Fix new installs."},{"date":"2021-02-08","desc":"Rebase to alpine. Add mariadb-backup."},{"date":"2021-02-08","desc":"Release alpine tag. The alpine release will replace the latest tag in the near future."},{"date":"2019-10-27","desc":"Bump to 10.4, ability use custom sql on initial init ,defining root passwords via file."},{"date":"2019-03-23","desc":"Switching to new Base images, shift to arm32v7 tag."},{"date":"2019-03-07","desc":"Add ability to setup a database and default user on first spinup."},{"date":"2019-01-26","desc":"Add pipeline logic and multi arch."},{"date":"2018-09-10","desc":"Rebase to ubuntu bionic and use 10.3 MariaDB repository."},{"date":"2017-12-09","desc":"Fix continuation lines."},{"date":"2017-09-12","desc":"Gracefully shut down MariaDB."},{"date":"2016-10-27","desc":"Implement linting suggestions on database init script."},{"date":"2016-10-11","desc":"Rebase to ubuntu xenial, add version labelling."},{"date":"2016-03-09","desc":"Update to MariaDB 10.1. Change to use custom.cnf over my.cnf in /config. Restructured init files to change config options on startup, rather than in the dockerfile."},{"date":"2016-01-26","desc":"Change user of mysqld_safe script to abc, better unclean shutdown handling on restart."},{"date":"2015-12-23","desc":"Remove autoupdating, between some version updates the container breaks."},{"date":"2015-08-12","desc":"Initial Release."}],"config":{"application_setup":"https://github.com/linuxserver-playground/docker-mariadb?tab=readme-ov-file#application-setup","readonly_supported":true,"nonroot_supported":true,"env_vars":[{"name":"PUID","value":"1000","desc":"User ID","optional":false},{"name":"PGID","value":"1000","desc":"Group ID","optional":false},{"name":"TZ","value":"Etc/UTC","desc":"Timezone","optional":false},{"name":"MYSQL_ROOT_PASSWORD","value":"ROOT_ACCESS_PASSWORD","desc":"Set this to root password for installation (minimum 4 characters & non-alphanumeric passwords must be properly escaped). (valid only for first run)","optional":false},{"name":"MYSQL_DATABASE","value":"USER_DB_NAME","desc":"Specify the name of a database to be created. (valid only for first run)","optional":true},{"name":"MYSQL_USER","value":"MYSQL_USER","desc":"This user will have superuser access to the database specified by MYSQL_DATABASE (do not use root here). (valid only for first run)","optional":true},{"name":"MYSQL_PASSWORD","value":"DATABASE_PASSWORD","desc":"Set this to the password you want to use for you MYSQL_USER (minimum 4 characters & non-alphanumeric passwords must be properly escaped). (valid only for first run)","optional":true},{"name":"REMOTE_SQL","value":"http://URL1/your.sql,https://URL2/your.sql","desc":"Set this to ingest sql files from an http/https endpoint (comma seperated array).","optional":true},{"name":"CLI_OPTS","value":"","desc":"Pass CLI options to mariadbd via mariadbd-safe. Use with caution as mariadbd option precedence is complex.","optional":true}],"volumes":[{"path":"/config","host_path":"/path/to/mariadb/config","desc":"Persistent config files","optional":false}],"ports":[{"external":"3306","internal":"3306","desc":"MariaDB listens on this port.","optional":false}]},"title":"Mariadb","sponsor":[{"name":"MariaDB Foundation","url":"https://mariadb.org/donate/"}],"maintainers":[],"kind":"app","categories":["Databases"],"setup_instructions":"Root via localhost (docker exec) no longer requires a password according to [upstream behavior](https://mariadb.com/docs/server/security/user-account-management/authentication-from-mariadb-10-4), if you didn't set a root password for remote access during the initial start follow the instructions in the container log.\n\nNOTE changing any of the MYSQL_ variables after the container has set up the initial databases has no effect, use the mysqladmin tool or cli to make changes.\n\nNOTE if you want to use (MYSQL_DATABASE MYSQL_USER MYSQL_PASSWORD) **all three** of these variables need to be set you cannot pick and choose.\n\nUnraid users, it is advisable to edit the template/webui after setup and remove reference to this variable.\n\nFind custom.cnf in /config for config changes (restart container for them to take effect)\n, the databases in /config/databases and the log in /config/log/myqsl\n\n### Loading passwords and users from files\n\nThe `MYSQL_ROOT_PASSWORD MYSQL_DATABASE MYSQL_USER MYSQL_PASSWORD REMOTE_SQL` env values can be set in a file:\n\n```path\n/config/env\n```\n\nUsing the following format:\n\n```env\nMYSQL_ROOT_PASSWORD=\"ROOT_ACCESS_PASSWORD\"\nMYSQL_DATABASE=\"USER_DB_NAME\"\nMYSQL_USER=\"MYSQL_USER\"\nMYSQL_PASSWORD=\"DATABASE_PASSWORD\"\nREMOTE_SQL=\"http://URL1/your.sql,https://URL2/your.sql\"\n```\n\nThese settings can be mixed and matched with Docker ENV settings as you require, but the settings in the file will always take precedence.\n\n### Bootstrapping a new instance\n\nWe support a one time run of custom sql files on init. In order to use this place `*.sql` files in:\n\n```path\n/config/initdb.d/\n```\nThis will have the same effect as setting the `REMOTE_SQL` environment variable. The sql will only be run on the containers first boot and setup.\n\n### Check and Repair\n\nIf user databases are not in a healthy state (sometimes caused by a failed upgrade), it may be remedied by running:\n\n```shell\nmariadb-check -c -A # check all databases for errors\nmariadb-check -r -A # repair all databases\nmariadb-check -a -A # analyze all databases\nmariadb-check -o -A # optimize all databases\n```\n\nAfter running the above commands, you may need to run the upgrade command again.\n\n### Upgrading\n\nWhen this container initializes, if `MYSQL_ROOT_PASSWORD` is set an upgrade check will run. If an upgrade is required the log will indicate the need stop any services that are accessing databases in this container, and then run the command:\n\n```shell\nmariadb-upgrade\n```","archived":false,"release_url":"https://github.com/linuxserver-playground/docker-mariadb/releases/tag/11.8.10-r0-ls10","upstream_version":"11.8.10-r0","base":"alpine","releases":[{"branch":"master","release_tag":"latest","channel":"stable","tag":"11.8.10-r0-ls10","upstream_version":"11.8.10-r0","created":"2026-11-29T08:07:00Z","release_url":"https://github.com/linuxserver-playground/docker-mariadb/releases/tag/11.8.10-r0-ls10","test_success":true,"base":"ghcr.io/linuxserver-playground/baseimage-alpine:3.24","platforms":["amd64","arm64"]}],"docs_url":"https://linuxserver-playground.github.io/site/images/mariadb/","registries":{"ghcr":"ghcr.io/linuxserver-playground/mariadb","packages_url":"https://github.com/orgs/linuxserver-playground/packages/container/package/mariadb"},"snippets":{"docker_compose":"---\nservices:\n  mariadb:\n    image: ghcr.io/linuxserver-playground/mariadb:latest\n    container_name: mariadb\n    environment:\n      - PUID=1000\n      - PGID=1000\n      - TZ=Etc/UTC\n      - MYSQL_ROOT_PASSWORD=ROOT_ACCESS_PASSWORD\n      - MYSQL_DATABASE=USER_DB_NAME #optional\n      - MYSQL_USER=MYSQL_USER #optional\n      - MYSQL_PASSWORD=DATABASE_PASSWORD #optional\n      - REMOTE_SQL=http://URL1/your.sql,https://URL2/your.sql #optional\n      - CLI_OPTS= #optional\n    volumes:\n      - /path/to/mariadb/config:/config\n    ports:\n      - 3306:3306\n    restart: unless-stopped\n","docker_run":"docker run -d \\\n  --name=mariadb \\\n  -e PUID=1000 \\\n  -e PGID=1000 \\\n  -e TZ=Etc/UTC \\\n  -e MYSQL_ROOT_PASSWORD=ROOT_ACCESS_PASSWORD \\\n  -e MYSQL_DATABASE=USER_DB_NAME `#optional` \\\n  -e MYSQL_USER=MYSQL_USER `#optional` \\\n  -e MYSQL_PASSWORD=DATABASE_PASSWORD `#optional` \\\n  -e REMOTE_SQL=http://URL1/your.sql,https://URL2/your.sql `#optional` \\\n  -e CLI_OPTS= `#optional` \\\n  -p 3306:3306 \\\n  -v /path/to/mariadb/config:/config \\\n  --restart unless-stopped \\\n  ghcr.io/linuxserver-playground/mariadb:latest\n"},"links":{"builds":"https://linuxserver-playground.github.io/hub/api/v1/catalog/mariadb/builds.json","docs":"https://linuxserver-playground.github.io/hub/stores/docs/images/docker-mariadb.md","documentation":"https://linuxserver-playground.github.io/hub/api/v1/catalog/mariadb/docs.json","kubernetes":"https://linuxserver-playground.github.io/hub/api/v1/catalog/mariadb/kubernetes.yaml","quadlet":"https://linuxserver-playground.github.io/hub/api/v1/catalog/mariadb/quadlet.container","mods":"https://linuxserver-playground.github.io/hub/api/v1/catalog/mariadb/mods.json"}}}}