I\'m trying to create some kind of script that will create a docker with mongodb and automatically create a user.
I can usually manage my docker images with docker-c
add --noauth option to the mongo command
extract from my docker-compose.yml file
mongors: image: mongo:latest command: mongod --noprealloc --smallfiles --replSet mongors2 --dbpath /data/db --nojournal --oplogSize 16 --noauth environment: TERM: xterm volumes: - ./data/mongors:/data/db