跳转到正文

Docker 验证证据 ​

MongoDB 已验证 · Verified 🕒 快照采集: 2026-08-23 15:15:53 UTC
🐳 镜像:server:由 MONGODB_IMAGE 锁定
🛠️ 关键工具:mongodmongosh
🚀 运行/交互insertMany → find().sort() → show collections → explain
docker-session.out.txt
$ mongosh --quiet --eval 'db.runCommand({ping:1})'
{ ok: 1 }

$ mongosh --quiet --eval fixed-session.js
[
  {
    _id: 3,
    name: 'Carol',
    score: 40
  },
  {
    _id: 1,
    name: 'Alice',
    score: 30
  }
]
[
  'items'
]
{
  isCached: false,
  stage: 'COLLSCAN',
  filter: {
    score: {
      '$gte': 30
    }
  },
  direction: 'forward'
}

Released under the MIT License.