Docker run mariadb

docker run --detach --name some-mariadb --env MARIADB_USER=example-user --env MARIADB_PASSWORD=my_cool_secret --env MARIADB_ROOT_PASSWORD=my-secret-pw mariadb:latest

docker run --detach --name laf-mariadb -p 3306:3306 --env MARIADB_ROOT_PASSWORD=111111 -v /Users/laf/bbbbbb/data/maria:/var/lib/mysql -v /Users/laf/bbbbbb/data/maria/etc:/etc/mysql mariadb:latest

Details: Docker Hub

你可能感兴趣的:(微服务,mariadb,docker,数据库)