mkdir -p /mydata/mongodb/data
docker pull mongo
docker run -d --name mongo --restart=always -v /mydata/mongodb/data:/data/db -p 27017:27017 --privileged=true mongo:latest
docker exec -it mongo mongo admin
db.createUser({ user:'admin',pwd:'root',roles:[ { role:'userAdminAnyDatabase', db: 'admin'},"readWriteAnyDatabase"]});