Skip to content

Instantly share code, notes, and snippets.

@koss822
Last active September 10, 2022 15:46
Show Gist options
  • Save koss822/c55fff4f2931562e5ce6f625a2dc7b8e to your computer and use it in GitHub Desktop.
Save koss822/c55fff4f2931562e5ce6f625a2dc7b8e to your computer and use it in GitHub Desktop.
initialize empty mysql database in docker with password
docker run -u1000:1000 -e MYSQL_ROOT_PASSWORD=password \
--mount type=bind,source=/home/user/dbstorage,target=/var/lib/mysql \
--name tmp_mariadb mariadb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment