Skip to content

Instantly share code, notes, and snippets.

@dickstar
Last active March 8, 2017 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dickstar/824b8093c0dfdc0a39ea0eccb1f99b59 to your computer and use it in GitHub Desktop.
Save dickstar/824b8093c0dfdc0a39ea0eccb1f99b59 to your computer and use it in GitHub Desktop.
#!/bin/bash
//Vagrant
//Ubuntu 14.04
//Requirement: install mongodb in the vagrant
sudo docker pull mongoclient/mongoclient
//Refer to http://dockone.io/article/152
sudo docker run -d -p 3000:3000 --net=host -v ~/mongoclient:/data/db --name mongoclient mongoclient/mongoclient
//Stop the contianer
//sudo docker stop mongoclient
//Run the contianer
//sudo docker start mongoclient
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment