mirror of
https://github.com/clearlinux/dockerfiles.git
synced 2026-10-17 18:02:38 +00:00
MariaDB
This provides a Clear Linux* MariaDB
Build
docker build -t clearlinux/mariadb .
Or just pull it from Dockerhub
docker pull clearlinux/mariadb
Start MariaDB Container
YOUR_HOST=`hostname -f`
docker run --name mariadb -p 3306:3306 -e MYSQL_ROOT_PASSWORD=secret -d clearlinux/mariadb
# Test it
mysql -uroot -h $YOUR_HOST -psecret -e "show databases;"
Environment Variables
MYSQL_ROOT_PASSWORDspecifies MariaDB root password
Extra Build ARGs
swupd_argsSpecifies SWUPD flags
Default build args in Docker are on: https://docs.docker.com/engine/reference/builder/#/arg