Skip to content

Instantly share code, notes, and snippets.

@Sam-R
Created June 13, 2019 11:25
Show Gist options
  • Save Sam-R/a656a45d1e2e30161208b6934288541e to your computer and use it in GitHub Desktop.
Save Sam-R/a656a45d1e2e30161208b6934288541e to your computer and use it in GitHub Desktop.
Docker Development Environment Notes

MySQL

Create a MySQL instance in a docker container that's bound to the hosts standard MySQL ports. This is useful if you're developing locally without a docker-compose enviornment and don't want to run MySQL on your local or virtual machine.

sudo docker run --name mysql5 -e MYSQL_ROOT_PASSWORD=toor -P 3306:3306 -d mysql:5

You should be able to connect to the server using root and toor as credentials.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment