Skip to content

Instantly share code, notes, and snippets.

@wamith
Last active September 13, 2020 02:57
Show Gist options
  • Save wamith/0d26b236bc48f72686beb7f3c8180528 to your computer and use it in GitHub Desktop.
Save wamith/0d26b236bc48f72686beb7f3c8180528 to your computer and use it in GitHub Desktop.
Local Mariadb database using docker
!#/bin/bash
mkdir -p ~/var/lib/mariadb
docker pull mariadb
docker run --name mariadb-local -p 3306 -v ~/var/lib/mariadb:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=password -d mariadb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment