Skip to content

Instantly share code, notes, and snippets.

@flaugabriel
Last active September 6, 2019 13:51
Show Gist options
  • Save flaugabriel/5528be2a3fbae9cb922f1b63a51efc37 to your computer and use it in GitHub Desktop.
Save flaugabriel/5528be2a3fbae9cb922f1b63a51efc37 to your computer and use it in GitHub Desktop.
sudo apt-get install docker.io
sudo docker run -d \
--name=mariadb \
--restart=always \
-v /etc/localtime:/etc/localtime:ro \
-u root \
-e MYSQL_ROOT_PASSWORD=root \
-v /storage/mariadb:/var/lib/mysql \
-p 3306:3306 \
mariadb:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment