root@mylabs-rpa:/home/ubuntu/openflow# docker exec -it c664a2b11e93 bash
root@c664a2b11e93:/# mongosh
Current Mongosh Log ID: 660ddb6023f5ca4d2ddb83af
Connecting to: mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.0
Using MongoDB: 7.0.7
Using Mongosh: 2.2.0
For mongosh info see: https://docs.mongodb.com/mongodb-shell/
To help improve our products, anonymous usage data is collected and sent to MongoDB periodically (https://www.mongodb.com/legal/privacy-policy).
You can opt-out by running the disableTelemetry() command.
------
The server generated these startup warnings when booting
2024-04-03T00:07:21.926+00:00: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine. See http://dochub.mongodb.org/core/prodnotes-filesystem
2024-04-03T00:07:24.091+00:00: Access control is not enabled for the database. Read and write access to data and configuration is unrestricted
2024-04-03T00:07:24.092+00:00: vm.max_map_count is too low
------
rs0 [direct: primary] test> use admin
switched to db admin
rs0 [direct: primary] admin> db.createUser({
... user: "metabase",
... pwd: "s3creet",
... roles: [
... {
... role: "read",
... db: "openflow"
... }
... ]
... })
{
ok: 1,
'$clusterTime': {
clusterTime: Timestamp({ t: 1712184193, i: 4 }),
signature: {
hash: Binary.createFromBase64('AAAAAAAAAAAAAAAAAAAAAAAAAAA=', 0),
keyId: Long('0')
}
},
operationTime: Timestamp({ t: 1712184193, i: 4 })
}
rs0 [direct: primary] admin>
rs0 [direct: primary] admin> exit
root@c664a2b11e93:/#