linux - docker中最合适的mongodb Version 4?

标签 linux mongodb docker

<分区>

我想在我的 Linux 服务器上使用 Docker 使用 MongoDb 版本 4。 但我不知道哪个标签合适且稳定.. 4.0 或 4.0.12 或 4.2.0 或 ...

我之前一直在使用 3.6 版并且没有遇到任何问题...但是由于 4 版更好我想使用 4 版。

谢谢你告诉我应该使用哪个 docker 镜像

最佳答案

不要被太多的标签迷失了方向。如果你仔细看看他们的digest ,你会注意到:

  • mongo:latest
  • mongo:仿生
  • mongo:4.2.0-bionic
  • mongo:4.2.0
  • mongo:4.2
  • mongo:4.2-bionic
  • mongo:4
  • mongo:4-bionic

都有相同的(6106df75f139)

此外,来自 MongoDB Versioning :

MongoDB Versioning

Important: Always upgrade to the latest stable revision of your release series.

MongoDB versioning has the form X.Y.Z where X.Y refers to either a release series or development series and Z refers to the revision/patch number.

  • If Y is even, X.Y refers to a release series; for example, 4.0 release series and 4.2 release series. Release series are stable and suitable for production.
  • If Y is odd, X.Y refers to a development series; for example, 4.1 development series and 4.3 development series. Development series are for testing only and not for production.

关于linux - docker中最合适的mongodb Version 4?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58303113/

相关文章:

mongodb - $maxDistance 在 MongoDB 中是如何测量的?

windows - 在 AIR 应用程序中捕获系统信息

java - 多个Java进程可以同时读取同一个文件吗?

javascript - 如何从数组中删除对象并更新所有其他对象的位置值?

docker - 如何重启我的Docker容器?

node.js - 运行 docker Push 到 ECR 时找不到 Docker 镜像

eclipse - Tomcat Docker 容器 : host webapp directory mounted as container webapp directory

node.js - NPM 拒绝安装 Semantic-UI

linux - 在管道 awk 语句之间传递变量

database - 使用 mongodb compass GUI 连接到 docker 中的 Mongodb