Change root password in MariaDB Docker container running with docker-compose Override the entrypoint in docker-compose.yml for the MariaDB Docker container by adding: entrypoint: mysqld_safe --skip-grant-tables --user=mysql The start up the Docker Compose stack: $> docker-compose up -d