Last active
January 26, 2019 20:03
-
-
Save coderdiaz/57135428f8bffccf1cc8770c81b6acf2 to your computer and use it in GitHub Desktop.
My Containers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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