Note: Since version 10.5, MariaDB supports UNIX socket authentication
out-of-the-box. Thus, you can always access the database as root
user from
the container. There is no reason to limit this, as if you manage to access the
container as root
, you can anyways do what ever you want for the database.
For more details, please see MariaDB documentation.
MYSQL_ROOT_PASSWORD
: create root user with this passwordMYSQL_ALLOW_EMPTY_PASSWORD
: allow creating root user with empty passwordMYSQL_RANDOM_ROOT_PASSWORD
: create random password for the root user on first startMYSQL_INITDB_SKIP_TZINFO
MYSQL_ROOT_HOST
: from what host root access should be allowed?
MYSQL_DATABASE
: name of the password to be createdMYSQL_USER
: username for the new userMYSQL_PASSWORD
: password for the new user