Docker image to run an out of the box MariaDB.
1.1K
Docker image to run an out of the box MariaDB.
$ docker build -t partlab/ubuntu-mariadb .
$ docker pull partlab/ubuntu-mariadb
$ docker run -d -p 3306:3306 -e MARIADB_ROOT_PASSWORD=<password> --name mariadb partlab/ubuntu-mariadb
$ docker run -d -p 3306:3306 --name mariadb -v <data-dir>/db:/var/lib/mysql partlab/ubuntu-mariadb
MARIADB_ROOT_PASSWORD: Password for the root user (set every time the server starts, defaults is a blank password)MARIADB_DATABASE: A database to automatically create if it doesn't exist. If not provided, does not create a database.MARIADB_USER: A user to create that has access to the database specified by MARIADB_DATABASE.MARIADB_PASSWORD: The password for MARIADB_USER. (defaults is a blank password)$ boot2docker halt
$ VBoxManage modifyvm boot2docker-vm --natpf1 "tcp-port3306,tcp,,3306,,3306"
$ boot2docker up
Content type
Image
Digest
sha256:4ef858008…
Size
126.9 MB
Last updated
almost 11 years ago
docker pull partlab/ubuntu-mariadb