2 lines
121 B
Bash
2 lines
121 B
Bash
|
docker exec -it $1 mongo --eval "printjson(rs.initiate({_id: 'rs0', members: [ { _id: 0, host: 'localhost:27017' } ]}))"
|