建立volume
docker volume create mariadb-data
docker run -v mariadb-data:/var/lib/mysql –name -d -p 3306:3306 –restart always -e
https://github.com/yycc31/docker/blob/main/Install%20MariaDB
10.5
安裝mariadb
dnf install mariadb mariadb-server
進入MariaDB
mysql -p -u root -h 127.0.0.1
use mysql
Reference: