Issue
I am running this command:
docker run --net mynet --ip IP -p 3306:3306 --mount source=database,target=/var/lib/mysql -e MYSQL_ROOT_PASSWORD=XXXX mariadb:10.5.17
I get the following error:
Unknown/unsupported storage engine: InnoDB
When I google, I find that I have to remove certain log files and run the following commands:
sudo rm -rf /var/lib/mysql/ib_logfile*
And then retry, but I get the same error repeatedly. Does anyone have a clue what am I missing here?
Solution
docker volume rm database
You need to also delete the volume on the host. Otherwise everytime you restart the container it will pickup an existing setup.
Answered By - Mihai Answer Checked By - Candace Johnson (WPSolving Volunteer)