Last active
March 23, 2016 16:40
-
-
Save jorgeguberte/048bc09874da2fda800d to your computer and use it in GitHub Desktop.
Docker commands
This file contains hidden or 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
docker-machine ip //Get a Docker machine ip | |
docker exec -it {$MONGO_INSTANCE_NAME} mongo admin //Enters the mongo admin CLI | |
docker run --name {$MONGO_INSTANCE_NAME} -p 27017:27017 mongo // Runs mongo and exposes and maps the port |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment