Skip to content

Instantly share code, notes, and snippets.

@coderdiaz
Last active January 26, 2019 20:03
Show Gist options
  • Save coderdiaz/57135428f8bffccf1cc8770c81b6acf2 to your computer and use it in GitHub Desktop.
Save coderdiaz/57135428f8bffccf1cc8770c81b6acf2 to your computer and use it in GitHub Desktop.
My Containers
# Creating a MongoDB container with the mongo latest version.
docker pull mongo
docker run --name mongo-database -d -p 27017:27017 mongo --noauth --bind_ip=0.0.0.0
docker ps
# Creating a MySQL container with the mysql:5.7 version.
docker pull mysql:5.7
docker run -d -p 3306:3306 --name mysql-database -e MYSQL_ROOT_PASSWORD=root mysql:5.7
docker ps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment