Skip to content

Instantly share code, notes, and snippets.

@javierav
Created October 31, 2021 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save javierav/533e60fd98e8e4c8dad70d90947ffa67 to your computer and use it in GitHub Desktop.
Save javierav/533e60fd98e8e4c8dad70d90947ffa67 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
docker run \
-d \
--name "mysql" \
--restart unless-stopped \
-p 3306:3306 \
--mount 'type=volume,source=mysql_storage,target=/var/lib/mysql,volume-driver=local' \
-e MYSQL_ALLOW_EMPTY_PASSWORD=yes \
mysql:5.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment