This Docker image (yobasystems/alpine-mariadb) is based on the minimal Alpine Linux with Mariadb 10.1.21 (MySQL Compatible) database server.
:armhf tag:latest latest nginx & alpine:master master branch usually inline with latest:v0.0.0 version number related to nginx version:armhf Armv7 based on latest tag but arm architecturedocker run -it --name mysql -p 3306:3306 -v /var/lib/mysql:/var/lib/mysql -e MYSQL_DATABASE=wordpressdb -e MYSQL_USER=wordpressuser -e MYSQL_PASSWORD=hguyFt6S95dgfR4ryb -e MYSQL_ROOT_PASSWORD=hguyFtgfR4r9R4r76 yobasystems/alpine-mariadb
It will create a new db, and set mysql root password (default is RaNd0MpA$$W0Rd generated by pwgen) unless the data already exists.
/var/lib/mysql: Database files/var/lib/mysql/mysql-bin: MariaDB logsMYSQL_DATABASE: specify the name of the databaseMYSQL_USER: specify the User for the databaseMYSQL_PASSWORD: specify the User password for the databaseMYSQL_ROOT_PASSWORD: specify the root password for Mariadbdocker run -d \
--name mysql \
-p 172.17.0.1:3306:3306 \
-v /data/mysql:/var/lib/mysql \
-e MYSQL_ROOT_PASSWORD=notasecret \
-e MYSQL_DATABASE=test \
-e MYSQL_USER=test \
-e MYSQL_PASSWORD=test \
cryptoplay/alpine-mariadb:latest
####(Please pass your own credentials or let them be generated automatically, don't use these ones for production!!)
mysql:
image: cryptoplay/alpine-mariadb:latest
environment:
MYSQL_ROOT_PASSWORD: notasecret
MYSQL_DATABASE: test
MYSQL_USER: test
MYSQL_PASSWORD: test
expose:
- "3306"
volumes:
- /data/mysql:/var/lib/mysql
restart: always
Content type
Image
Digest
Size
50.2 MB
Last updated
over 9 years ago
docker pull cryptoplay/alpine-mariadb