Skip to content

Instantly share code, notes, and snippets.

@jorgeguberte
Last active March 23, 2016 16:40
Show Gist options
  • Save jorgeguberte/048bc09874da2fda800d to your computer and use it in GitHub Desktop.
Save jorgeguberte/048bc09874da2fda800d to your computer and use it in GitHub Desktop.
Docker commands
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