You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

5 lines
221 B

#!/bin/sh
docker ps
docker stop mongo
docker rm mongo
docker run -d -p 27017:27017 --name mongo -v $PWD/data:/data/db -v $PWD/log:/data/logs -e MONGO_INITDB_ROOT_USERNAME=root -e MONGO_INITDB_ROOT_PASSWORD=73937393 mongo