logo
docker.io/mongodb/mongodb-community-server:7.0.37-ubi9-slim
linux/amd64 docker.io

MongoDB 社区版服务器

这是一个由 MongoDB 官方提供的 Docker 容器镜像,包含了社区版 MongoDB 数据库服务器。

它提供了一个稳定、高效的数据库服务器,并具有丰富的功能,适合各种应用场景。

你可以使用这个镜像快速搭建 MongoDB 数据库,并进行各种操作。

更多关于 MongoDB 社区版的信息,请参考 MongoDB 官方网站.

5
浏览次数
529.27MB
镜像大小
源镜像
docker.io/mongodb/mongodb-community-server:7.0.37-ubi9-slim
国内镜像
swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mongodb/mongodb-community-server:7.0.37-ubi9-slim
镜像ID
sha256:43bfed3dce804a2d0111a04bea7cecf92ff8d651b5f8449ca3d3b7b330db38d0
镜像 TAG
7.0.37-ubi9-slim
镜像大小
529.27MB
平台架构
linux/amd64
镜像源
docker.io
CMD
mongod
启动入口
/usr/local/bin/docker-entrypoint
工作目录
/
OS/平台
linux/amd64
镜像创建
2026-07-03T06:18:45.998621268Z
同步时间
2026-07-03 17:24
浏览量
5 次
贡献者
🔌 开放端口 1
27017/tcp
📁 目录挂载 2
 /data/configdb  /data/db
⚙️ 环境变量 2
KeyValue
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 0
HOME=/data/db 1
🏷️ 镜像标签 22
KeyValue
x86_64 architecture
2026-06-30T17:36:05Z build-date
ubi9-micro-container com.redhat.component
https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI com.redhat.license_terms
cpe:/a:redhat:enterprise_linux:9::appstream cpe
Container configured with a standalone instance of MongoDB description
public distribution-scope
1.44.0 io.buildah.version
Very small image which doesn't install the package manager. io.k8s.description
Red Hat Universal Base Image 9 Micro io.k8s.display-name
io.openshift.expose-services
support@mongodb.com maintainer
MongoDB Standalone name
2026-06-30T17:36:05Z org.opencontainers.image.created
0ae96b6e89e065fa361df46662738a1efb9ac822 org.opencontainers.image.revision
1782840931 release
MongoDB Standalone Container summary
https://catalog.redhat.com/en/search?searchType=containers url
0ae96b6e89e065fa361df46662738a1efb9ac822 vcs-ref
git vcs-type
MongoDB vendor
7.0.37 version
🛡️ 镜像安全扫描
redhat 9.8 Trivy 2026-07-03 17:24 查看完整报告
6
低危 LOW
10
中危 MEDIUM
2
高危 HIGH
0
严重 CRITICAL
受影响目标 (1)
docker.io/mongodb/mongodb-community-server:7.0.37-ubi9-slim (redhat 9.8) redhat

Docker拉取命令

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mongodb/mongodb-community-server:7.0.37-ubi9-slim
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mongodb/mongodb-community-server:7.0.37-ubi9-slim  docker.io/mongodb/mongodb-community-server:7.0.37-ubi9-slim

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mongodb/mongodb-community-server:7.0.37-ubi9-slim
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mongodb/mongodb-community-server:7.0.37-ubi9-slim  docker.io/mongodb/mongodb-community-server:7.0.37-ubi9-slim

Shell快速替换命令

sed -i 's#mongodb/mongodb-community-server:7.0.37-ubi9-slim#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mongodb/mongodb-community-server:7.0.37-ubi9-slim#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mongodb/mongodb-community-server:7.0.37-ubi9-slim && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mongodb/mongodb-community-server:7.0.37-ubi9-slim  docker.io/mongodb/mongodb-community-server:7.0.37-ubi9-slim'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mongodb/mongodb-community-server:7.0.37-ubi9-slim && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mongodb/mongodb-community-server:7.0.37-ubi9-slim  docker.io/mongodb/mongodb-community-server:7.0.37-ubi9-slim'

镜像构建历史


# 2026-07-03 14:18:45  0.00B 设置默认要执行的命令
CMD ["mongod"]
                        
# 2026-07-03 14:18:45  0.00B 声明容器运行时监听的端口
EXPOSE map[27017/tcp:{}]
                        
# 2026-07-03 14:18:45  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/usr/local/bin/docker-entrypoint"]
                        
# 2026-07-03 14:18:45  0.00B 指定运行容器时使用的用户
USER mongod
                        
# 2026-07-03 14:18:45  0.00B 设置环境变量 HOME
ENV HOME=/data/db
                        
# 2026-07-03 14:18:45  0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/data/db /data/configdb]
                        
# 2026-07-03 14:18:45  0.00B 复制新文件或目录到容器中
COPY /data /data # buildkit
                        
# 2026-07-03 14:18:45  421.00B 复制新文件或目录到容器中
COPY /etc/group /etc/group # buildkit
                        
# 2026-07-03 14:18:45  747.00B 复制新文件或目录到容器中
COPY /etc/passwd /etc/passwd # buildkit
                        
# 2026-07-03 14:18:45  155.00B 复制新文件或目录到容器中
COPY /licenses /licenses # buildkit
                        
# 2026-07-03 14:18:45  133.04MB 复制新文件或目录到容器中
COPY /usr/bin/mongos /usr/bin/mongos # buildkit
                        
# 2026-07-03 14:18:45  169.15MB 复制新文件或目录到容器中
COPY /usr/bin/mongosh /usr/bin/mongosh # buildkit
                        
# 2026-07-03 14:18:45  186.02MB 复制新文件或目录到容器中
COPY /usr/bin/mongod /usr/bin/mongod # buildkit
                        
# 2026-07-03 14:18:45  13.93MB 复制新文件或目录到容器中
COPY /libs/ /usr/lib64/ # buildkit
                        
# 2026-07-03 14:18:45  4.14MB 复制新文件或目录到容器中
COPY /docker-entrypoint/target/release/docker-entrypoint /usr/local/bin/docker-entrypoint # buildkit
                        
# 2026-07-03 14:18:45  0.00B 添加元数据标签
LABEL name=MongoDB Standalone version=7.0.37 summary=MongoDB Standalone Container description=Container configured with a standalone instance of MongoDB vendor=MongoDB maintainer=support@mongodb.com
                        
# 2026-07-01 01:36:46  23.00MB 
/bin/sh -c #(nop) LABEL "org.opencontainers.image.created"="2026-06-30T17:36:05Z" "org.opencontainers.image.revision"="0ae96b6e89e065fa361df46662738a1efb9ac822" "build-date"="2026-06-30T17:36:05Z" "architecture"="x86_64" "vcs-ref"="0ae96b6e89e065fa361df46662738a1efb9ac822" "vcs-type"="git" "release"="1782840931"org.opencontainers.image.created=2026-06-30T17:36:05Z,org.opencontainers.image.revision=0ae96b6e89e065fa361df46662738a1efb9ac822
                        
# 2026-07-01 01:36:46  0.00B 
/bin/sh -c #(nop) COPY dir:a0876a6e609d3a58b3e3183d6a23d2ebba132f853967bf5a534e70ac6bb0934c in /root/buildinfo/      
                        
# 2026-07-01 01:36:46  0.00B 
/bin/sh -c #(nop) COPY dir:a0876a6e609d3a58b3e3183d6a23d2ebba132f853967bf5a534e70ac6bb0934c in /usr/share/buildinfo/      
                        
# 2026-07-01 01:36:46  0.00B 
/bin/sh -c #(nop) CMD /bin/sh
                        
# 2026-07-01 01:36:46  0.00B 
/bin/sh -c #(nop) COPY file:1376702515d596f414e3aa494e0daa6d408a6d2475c4aeca96bf9392f5287f69 in /etc/yum.repos.d/      
                        
# 2026-07-01 01:36:46  0.00B 
/bin/sh -c #(nop) COPY dir:a964368a8b0715547585e0265f5cfe367bab30115dc17a2c35a531cd7eae1879 in /      
                        
# 2026-07-01 01:36:46  0.00B 
/bin/sh -c #(nop) LABEL io.openshift.expose-services=""
                        
# 2026-07-01 01:36:46  0.00B 
/bin/sh -c #(nop) LABEL io.k8s.display-name="Red Hat Universal Base Image 9 Micro"
                        
# 2026-07-01 01:36:46  0.00B 
/bin/sh -c #(nop) LABEL io.k8s.description="Very small image which doesn't install the package manager."
                        
# 2026-07-01 01:36:46  0.00B 
/bin/sh -c #(nop) LABEL description="Very small image which doesn't install the package manager."
                        
# 2026-07-01 01:36:46  0.00B 
/bin/sh -c #(nop) LABEL summary="ubi9 micro image"
                        
# 2026-07-01 01:36:46  0.00B 
/bin/sh -c #(nop) LABEL com.redhat.license_terms="https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI"
                        
# 2026-07-01 01:36:46  0.00B 
/bin/sh -c #(nop) LABEL distribution-scope="public"
                        
# 2026-07-01 01:36:46  0.00B 
/bin/sh -c #(nop) LABEL cpe="cpe:/a:redhat:enterprise_linux:9::appstream"
                        
# 2026-07-01 01:36:45  0.00B 
/bin/sh -c #(nop) LABEL version="9.8"
                        
# 2026-07-01 01:36:45  0.00B 
/bin/sh -c #(nop) LABEL name="ubi9/ubi-micro"
                        
# 2026-07-01 01:36:45  0.00B 
/bin/sh -c #(nop) LABEL com.redhat.component="ubi9-micro-container"
                        
# 2026-07-01 01:36:45  0.00B 
/bin/sh -c #(nop) LABEL url="https://catalog.redhat.com/en/search?searchType=containers"
                        
# 2026-07-01 01:36:45  0.00B 
/bin/sh -c #(nop) LABEL vendor="Red Hat, Inc."
                        
# 2026-07-01 01:36:45  0.00B 
/bin/sh -c #(nop) LABEL maintainer="Red Hat, Inc."
                        
                    

镜像信息

{
    "Id": "sha256:43bfed3dce804a2d0111a04bea7cecf92ff8d651b5f8449ca3d3b7b330db38d0",
    "RepoTags": [
        "mongodb/mongodb-community-server:7.0.37-ubi9-slim",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mongodb/mongodb-community-server:7.0.37-ubi9-slim"
    ],
    "RepoDigests": [
        "mongodb/mongodb-community-server@sha256:6cf9fe5120de3362e37c0bd47d762d7cb4889b2b57e9d000bb0094000b6521e7",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mongodb/mongodb-community-server@sha256:38631859754c4f5826e493abfbb6c6f3752f1ef689318dee9426d12d4e533375"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2026-07-03T06:18:45.998621268Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "mongod",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "ExposedPorts": {
            "27017/tcp": {}
        },
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "HOME=/data/db"
        ],
        "Cmd": [
            "mongod"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": {
            "/data/configdb": {},
            "/data/db": {}
        },
        "WorkingDir": "/",
        "Entrypoint": [
            "/usr/local/bin/docker-entrypoint"
        ],
        "OnBuild": null,
        "Labels": {
            "architecture": "x86_64",
            "build-date": "2026-06-30T17:36:05Z",
            "com.redhat.component": "ubi9-micro-container",
            "com.redhat.license_terms": "https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI",
            "cpe": "cpe:/a:redhat:enterprise_linux:9::appstream",
            "description": "Container configured with a standalone instance of MongoDB",
            "distribution-scope": "public",
            "io.buildah.version": "1.44.0",
            "io.k8s.description": "Very small image which doesn't install the package manager.",
            "io.k8s.display-name": "Red Hat Universal Base Image 9 Micro",
            "io.openshift.expose-services": "",
            "maintainer": "support@mongodb.com",
            "name": "MongoDB Standalone",
            "org.opencontainers.image.created": "2026-06-30T17:36:05Z",
            "org.opencontainers.image.revision": "0ae96b6e89e065fa361df46662738a1efb9ac822",
            "release": "1782840931",
            "summary": "MongoDB Standalone Container",
            "url": "https://catalog.redhat.com/en/search?searchType=containers",
            "vcs-ref": "0ae96b6e89e065fa361df46662738a1efb9ac822",
            "vcs-type": "git",
            "vendor": "MongoDB",
            "version": "7.0.37"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 529272437,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/7516a4c06bc36337060ecb5357f76c14410031d24ebabb348d4e160fd8b2e8da/diff:/var/lib/docker/overlay2/4d50f18d2a3a892c605f587ccb4a030ef1aa19c813be858ebcbce9ed620b4391/diff:/var/lib/docker/overlay2/d8db16b78ed5a8b847f19efe3b8f917688ba7d693cdd8326db89213634261c08/diff:/var/lib/docker/overlay2/50174c030669038cee8dc0670e5031b8e4dc8094c0bbe533effef1e1589175b6/diff:/var/lib/docker/overlay2/2c751025804ce1d31eb56ae0af5aaa1ca7f7572b746fd3c4f628826052cdc484/diff:/var/lib/docker/overlay2/2dd2558967ddc7f2f11628f8895f45809c20c72cf012f94073aa3cf8e785b908/diff:/var/lib/docker/overlay2/33f9312e2ff3b0c5e892c40e6050049477814cb22b3cd693669948c9fba175b2/diff:/var/lib/docker/overlay2/39248f8abc9c36b19967f4c1f268843ef9ee6ae1fb0bb61d7a6414ccb6bba747/diff:/var/lib/docker/overlay2/be7e4c170618d5817d6f117939222804d4e6567c7626b6a4ca18e41b946e4091/diff",
            "MergedDir": "/var/lib/docker/overlay2/7135c528d08b5195b76a68b3b45a8daef23d5179ecf601e222f77b2a496ce95e/merged",
            "UpperDir": "/var/lib/docker/overlay2/7135c528d08b5195b76a68b3b45a8daef23d5179ecf601e222f77b2a496ce95e/diff",
            "WorkDir": "/var/lib/docker/overlay2/7135c528d08b5195b76a68b3b45a8daef23d5179ecf601e222f77b2a496ce95e/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:c7f0581deee3537883fe1e34d0d4a741a7a90c095427f2ababb4fba4dd6ead93",
            "sha256:7b1f987338c60cbb0806fbad51effacb90d0ee17f8f3e43af35ffe3c1365a2d5",
            "sha256:ade3fd499eefbd9a23dea6e8853ced4642df401278a2c99390c2d2809a83b624",
            "sha256:144773fc410e4109d7b74a8dd797ac3da9c326ca77bc935116c5c74426dc8bd9",
            "sha256:585f19db2ee165eec8fe544e2e2861c99a6b00c70b4d110be2bf31890a5d1548",
            "sha256:4272bd23dc3148d906bb897defbfcda62ef3a0cbccab9b58f8630adea12439b6",
            "sha256:0153b22062399ee842a70175527e5ac6ef5a87ea7eba90cbef47eb7dbd489f02",
            "sha256:2a06066fafdbab17b1497bebecc2e3c8c9b6b4136ae9ebb3322fce586c97d76a",
            "sha256:4a9c04904e6a0c627604267f0853a66eedeb9031589d2ca5683c6a9a9feb9082",
            "sha256:d909a7bed778a61d5c8eb948fdef1ebd02197cc2623fcc98d517de4c9ee39dd1"
        ]
    },
    "Metadata": {
        "LastTagTime": "2026-07-03T17:24:14.255171494+08:00"
    }
}

更多版本

docker.io/mongodb/mongodb-community-server:7.0.3-rc1-ubi8

linux/amd64 docker.io1.16GB2024-10-21 16:09
1195

docker.io/mongodb/mongodb-community-server:6.0.11-ubi9

linux/amd64 docker.io1.16GB2024-12-04 15:56
701

docker.io/mongodb/mongodb-community-server:6.0.16-ubuntu2204

linux/amd64 docker.io1.19GB2025-03-12 09:57
657

docker.io/mongodb/mongodb-community-server:8.0.9-ubi8

linux/amd64 docker.io1.21GB2025-06-07 09:41
733

docker.io/mongodb/mongodb-community-server:8.0.6-ubi8

linux/amd64 docker.io1.21GB2025-06-10 18:02
445

docker.io/mongodb/mongodb-community-server:8.0.6-ubi8

linux/arm64 docker.io1.19GB2025-06-10 18:06
721

docker.io/mongodb/mongodb-community-server:8.0-ubi8

linux/amd64 docker.io1.22GB2025-06-26 10:45
834

docker.io/mongodb/mongodb-community-server:8.0.10-ubi8

linux/amd64 docker.io1.22GB2025-06-26 10:46
600

docker.io/mongodb/mongodb-community-server:6.0.10-ubi9

linux/amd64 docker.io1.08GB2025-07-11 18:04
437

docker.io/mongodb/mongodb-community-server:8.0.11-ubi9

linux/amd64 docker.io1.22GB2025-07-14 14:38
741

docker.io/mongodb/mongodb-community-server:8.0.12-ubuntu2204

linux/amd64 docker.io1.33GB2025-07-24 17:28
543

docker.io/mongodb/mongodb-community-server:7.0.24-rc0-ubuntu2204

linux/amd64 docker.io1.26GB2025-09-04 09:39
444

docker.io/mongodb/mongodb-community-server:8.0.13-ubuntu2204

linux/amd64 docker.io1.33GB2025-09-05 12:20
410

docker.io/mongodb/mongodb-community-server:8.2.1-rc1-ubi8

linux/amd64 docker.io1.22GB2025-09-26 19:00
527

docker.io/mongodb/mongodb-community-server:8.2.1-rc1-ubi8

linux/arm64 docker.io1.20GB2025-09-26 19:03
473

docker.io/mongodb/mongodb-community-server:8.2.1-rc1-ubuntu2204

linux/amd64 docker.io1.34GB2025-10-10 07:35
451

docker.io/mongodb/mongodb-community-server:8.2-ubi8

linux/amd64 docker.io1.25GB2025-12-05 22:25
486

docker.io/mongodb/mongodb-community-server:6.0.3-ubuntu2204

linux/arm64 docker.io1.14GB2025-12-06 13:20
312

docker.io/mongodb/mongodb-community-server:latest

linux/amd64 docker.io1.35GB2025-12-22 10:12
627

docker.io/mongodb/mongodb-community-server:8.2.1-ubuntu2204

linux/amd64 docker.io1.34GB2025-12-22 11:02
1792

docker.io/mongodb/mongodb-community-server:8.0.1-ubi8

linux/amd64 docker.io1.21GB2025-12-26 11:22
329

docker.io/mongodb/mongodb-community-server:8.2.2-ubuntu2204

linux/amd64 docker.io1.35GB2026-01-05 16:25
429

docker.io/mongodb/mongodb-community-server:8.2.3-ubuntu2204

linux/amd64 docker.io1.34GB2026-01-05 16:28
1429

docker.io/mongodb/mongodb-community-server:4.4.29-ubuntu2204

linux/amd64 docker.io849.58MB2026-01-09 20:40
327

docker.io/mongodb/mongodb-community-server:8.0.17-ubi9

linux/amd64 docker.io1.25GB2026-01-26 12:24
288

docker.io/mongodb/mongodb-community-server:4.4.30-ubuntu2204

linux/amd64 docker.io871.08MB2026-01-30 22:57
321

docker.io/mongodb/mongodb-community-server:8.2.6-ubuntu2204-slim

linux/amd64 docker.io722.26MB2026-04-01 15:57
382

docker.io/mongodb/mongodb-community-server:4.4.31-ubuntu2204

linux/amd64 docker.io829.40MB2026-06-19 23:29
139

docker.io/mongodb/mongodb-community-server:7.0.37-ubi9-slim

linux/amd64 docker.io529.27MB2026-07-03 17:24
4
检测到您正在使用广告拦截插件,本站为公益站点,依赖广告维持运转 🙏 查看如何关闭 ×