Last active
March 8, 2017 15:16
-
-
Save dickstar/824b8093c0dfdc0a39ea0eccb1f99b59 to your computer and use it in GitHub Desktop.
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
#!/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