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

MongoDB 社区版服务器

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

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

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

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

763
浏览次数
1.22GB
镜像大小
国内镜像
swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mongodb/mongodb-community-server:8.0.11-ubi9
源镜像
docker.io/mongodb/mongodb-community-server:8.0.11-ubi9
镜像ID
sha256:5402296247d69f3cabaa9fdc480d1f267f098d1651868563f52779baaa11597e
镜像 TAG
8.0.11-ubi9
镜像大小
1.22GB
平台架构
linux/amd64
镜像源
docker.io
CMD
mongod
启动入口
python3 /usr/local/bin/docker-entrypoint.py
工作目录
/
OS/平台
linux/amd64
镜像创建
2025-07-13T06:17:38.814269064Z
同步时间
2025-07-14 14:38
浏览量
763 次
贡献者
🔌 开放端口 1
27017/tcp
📁 目录挂载 2
 /data/configdb  /data/db
⚙️ 环境变量 3
KeyValue
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 0
container=oci 1
HOME=/data/db 2
🏷️ 镜像标签 20
KeyValue
x86_64 architecture
2025-07-09T14:01:19 build-date
ubi9-container com.redhat.component
https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI com.redhat.license_terms
Container configured with a standalone instance of MongoDB description
public distribution-scope
1.41.0-dev io.buildah.version
The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly. io.k8s.description
Red Hat Universal Base Image 9 io.k8s.display-name
io.openshift.expose-services
base rhel9 io.openshift.tags
support@mongodb.com maintainer
MongoDB Standalone name
1752069608 release
MongoDB Standalone Container summary
https://www.redhat.com url
d3a7532cdd2fbad954ad89f2f394e28f4be3593e vcs-ref
git vcs-type
MongoDB vendor
8.0.11 version

Docker拉取命令

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

Containerd拉取命令

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

Shell快速替换命令

sed -i 's#mongodb/mongodb-community-server:8.0.11-ubi9#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mongodb/mongodb-community-server:8.0.11-ubi9#' 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:8.0.11-ubi9 && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mongodb/mongodb-community-server:8.0.11-ubi9  docker.io/mongodb/mongodb-community-server:8.0.11-ubi9'

Ansible快速分发-Containerd

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

镜像构建历史


# 2025-07-13 14:17:38  0.00B 设置默认要执行的命令
CMD ["mongod"]
                        
# 2025-07-13 14:17:38  0.00B 声明容器运行时监听的端口
EXPOSE map[27017/tcp:{}]
                        
# 2025-07-13 14:17:38  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["python3" "/usr/local/bin/docker-entrypoint.py"]
                        
# 2025-07-13 14:17:38  0.00B 指定运行容器时使用的用户
USER mongod
                        
# 2025-07-13 14:17:38  0.00B 设置环境变量 HOME
ENV HOME=/data/db
                        
# 2025-07-13 14:17:38  0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/data/db /data/configdb]
                        
# 2025-07-13 14:17:38  0.00B 执行命令并创建新的镜像层
RUN |2 HOST_UID= HOST_GID= /bin/sh -c mkdir -p /data/db /data/configdb     && chown -R mongod:mongod /data/db /data/configdb # buildkit
                        
# 2025-07-13 14:17:38  0.00B 执行命令并创建新的镜像层
RUN |2 HOST_UID= HOST_GID= /bin/sh -c if [ -n "${HOST_UID}" ]; then usermod -u ${HOST_UID} mongod; fi;     if [ -n "${HOST_GID}" ]; then groupmod -g ${HOST_GID} mongod; fi # buildkit
                        
# 2025-07-13 14:17:38  0.00B 定义构建参数
ARG HOST_GID
                        
# 2025-07-13 14:17:38  0.00B 定义构建参数
ARG HOST_UID
                        
# 2025-07-13 14:17:38  0.00B 添加元数据标签
LABEL name=MongoDB Standalone version=8.0.11 summary=MongoDB Standalone Container description=Container configured with a standalone instance of MongoDB vendor=MongoDB maintainer=support@mongodb.com
                        
# 2025-07-13 14:17:35  22.15KB 复制新文件或目录到容器中
COPY docker-entrypoint.py /usr/local/bin/docker-entrypoint.py # buildkit
                        
# 2025-07-13 14:17:34  155.00B 复制新文件或目录到容器中
COPY LICENSE /licenses # buildkit
                        
# 2025-07-13 14:17:34  0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir -p licenses # buildkit
                        
# 2025-07-13 14:17:34  42.00MB 执行命令并创建新的镜像层
RUN /bin/sh -c bash -c "python3 -m pip install --upgrade pip wheel && python3 -m pip install pyyaml psutil && dnf remove -y gcc python3-devel python3-requests" # buildkit
                        
# 2025-07-13 14:17:30  973.00MB 执行命令并创建新的镜像层
RUN /bin/sh -c dnf update -y --setopt=install_weak_deps=0 --nobest &&     dnf install -y --setopt=install_weak_deps=0 --exclude=openssl-libs --nobest --skip-broken    mongodb-org-8.0.11 mongodb-org-database-8.0.11     mongodb-org-server-8.0.11     mongodb-org-mongos-8.0.11 mongodb-org-tools-8.0.11     python3 python3-devel python3-pip gcc wget     hostname nss_wrapper procps &&     dnf clean all # buildkit
                        
# 2025-07-13 14:17:12  203.00B 复制新文件或目录到容器中
COPY mongodb-org.repo /etc/yum.repos.d/ # buildkit
                        
# 2025-07-13 14:17:12  0.00B 添加元数据标签
LABEL name=MongoDB Base version=8.0.11 summary=MongoDB Base Container description=Container with all MongoDB packages installed vendor=MongoDB maintainer=support@mongodb.com
                        
# 2025-07-09 22:01:47  209.62MB 
/bin/sh -c #(nop) LABEL "build-date"="2025-07-09T14:01:19" "architecture"="x86_64" "vcs-type"="git" "vcs-ref"="d3a7532cdd2fbad954ad89f2f394e28f4be3593e" "release"="1752069608"
                        
# 2025-07-09 22:01:46  0.00B 
/bin/sh -c #(nop) COPY file:58cc94f5b3b2d60de2c77a6ed4b1797dcede502ccdb429a72e7a72d994235b3c in /usr/share/buildinfo/content-sets.json    
                        
# 2025-07-09 22:01:46  0.00B 
/bin/sh -c #(nop) CMD ["/bin/bash"]
                        
# 2025-07-09 22:01:46  0.00B 
/bin/sh -c #(nop) COPY file:b37d593713ee21ad52a4cd1424dc019a24f7966f85df0ac4b86d234302695328 in /etc/yum.repos.d/.    
                        
# 2025-07-09 22:01:46  0.00B 
/bin/sh -c #(nop) COPY dir:8fd29a2838957b624d93dc79c48d27cc3143d86b5260ce0207553c41c1c87b56 in /    
                        
# 2025-07-09 22:01:44  0.00B 
/bin/sh -c #(nop) ENV container oci
                        
# 2025-07-09 22:01:44  0.00B 
/bin/sh -c #(nop) LABEL io.openshift.tags="base rhel9"
                        
# 2025-07-09 22:01:44  0.00B 
/bin/sh -c #(nop) LABEL io.openshift.expose-services=""
                        
# 2025-07-09 22:01:44  0.00B 
/bin/sh -c #(nop) LABEL io.k8s.display-name="Red Hat Universal Base Image 9"
                        
# 2025-07-09 22:01:44  0.00B 
/bin/sh -c #(nop) LABEL io.k8s.description="The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly."
                        
# 2025-07-09 22:01:44  0.00B 
/bin/sh -c #(nop) LABEL description="The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly."
                        
# 2025-07-09 22:01:44  0.00B 
/bin/sh -c #(nop) LABEL summary="Provides the latest release of Red Hat Universal Base Image 9."
                        
# 2025-07-09 22:01:44  0.00B 
/bin/sh -c #(nop) LABEL com.redhat.license_terms="https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI"
                        
# 2025-07-09 22:01:44  0.00B 
/bin/sh -c #(nop) LABEL com.redhat.component="ubi9-container"       name="ubi9"       version="9.6"       distribution-scope="public"
                        
# 2025-07-09 22:01:44  0.00B 
/bin/sh -c #(nop) LABEL url="https://www.redhat.com"
                        
# 2025-07-09 22:01:44  0.00B 
/bin/sh -c #(nop) LABEL maintainer="Red Hat, Inc."       vendor="Red Hat, Inc."
                        
                    

镜像信息

{
    "Id": "sha256:5402296247d69f3cabaa9fdc480d1f267f098d1651868563f52779baaa11597e",
    "RepoTags": [
        "mongodb/mongodb-community-server:8.0.11-ubi9",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mongodb/mongodb-community-server:8.0.11-ubi9"
    ],
    "RepoDigests": [
        "mongodb/mongodb-community-server@sha256:091dc5a697fbbd8ffa7907713e59225179a4f2702de07ee49e6f80b29ab99219",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mongodb/mongodb-community-server@sha256:d65a78910bc88236a8a90d7e499373855f99875f15575c3aedde18c52ea39429"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2025-07-13T06:17:38.814269064Z",
    "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",
            "container=oci",
            "HOME=/data/db"
        ],
        "Cmd": [
            "mongod"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": {
            "/data/configdb": {},
            "/data/db": {}
        },
        "WorkingDir": "/",
        "Entrypoint": [
            "python3",
            "/usr/local/bin/docker-entrypoint.py"
        ],
        "OnBuild": null,
        "Labels": {
            "architecture": "x86_64",
            "build-date": "2025-07-09T14:01:19",
            "com.redhat.component": "ubi9-container",
            "com.redhat.license_terms": "https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI",
            "description": "Container configured with a standalone instance of MongoDB",
            "distribution-scope": "public",
            "io.buildah.version": "1.41.0-dev",
            "io.k8s.description": "The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.",
            "io.k8s.display-name": "Red Hat Universal Base Image 9",
            "io.openshift.expose-services": "",
            "io.openshift.tags": "base rhel9",
            "maintainer": "support@mongodb.com",
            "name": "MongoDB Standalone",
            "release": "1752069608",
            "summary": "MongoDB Standalone Container",
            "url": "https://www.redhat.com",
            "vcs-ref": "d3a7532cdd2fbad954ad89f2f394e28f4be3593e",
            "vcs-type": "git",
            "vendor": "MongoDB",
            "version": "8.0.11"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 1224637758,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/1635b98ee096f66138b48e92d7106679c2574d93258e301403834b078c8998b2/diff:/var/lib/docker/overlay2/2dab9b7d0068c3b2f53788d0499dea42ffcf1ebce916ae8428f95c7b7ea222ec/diff:/var/lib/docker/overlay2/f3261b696e1d8004e2ef785843f497d10f5b9a075474b3258f75c76aa4cb678d/diff:/var/lib/docker/overlay2/1bc14c3278633b8fbaebdb65c687fa7bc28ce6ed1d43e88e5a53e7186e9df708/diff:/var/lib/docker/overlay2/e919ad23047f4439c9a7c654c0d8f7ede8704c933d6d50fff6e694697738e018/diff:/var/lib/docker/overlay2/a6c85256938d0d8b0553b2a3efdda7d2cc4b846455e31e5b6e07724ec31f6e18/diff:/var/lib/docker/overlay2/55d7ef5fc1a5b65fd08a18370ac6ba1e66ca7af71ca6ea00f8e0d0587a5aebde/diff:/var/lib/docker/overlay2/bb12ba20bf89fd87eec84b5668e785b41b5c36160044e57add37522a1e45f816/diff",
            "MergedDir": "/var/lib/docker/overlay2/29414d3e76120ebefe571ef58462808e9092fb498cc791e401df79cf3787f638/merged",
            "UpperDir": "/var/lib/docker/overlay2/29414d3e76120ebefe571ef58462808e9092fb498cc791e401df79cf3787f638/diff",
            "WorkDir": "/var/lib/docker/overlay2/29414d3e76120ebefe571ef58462808e9092fb498cc791e401df79cf3787f638/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:43fcf73fe0582a797491715b1b1a8c55f292a66223f2da7b2058d73d4fc74799",
            "sha256:d7791972e4ae2b2ba0588e75be2e17b3e0337935df32e5d07b8b4d96551d28ed",
            "sha256:6876a3a64443a32df30463bb472818ccc97d1ab60728ec809a955c106828882c",
            "sha256:30e96a50f343647003f9c330be5b1aeac9206b8ec6bb0c4f4e808bd798d55af1",
            "sha256:24e3c5e6ebc109cf29d76d3d068b532bd779784b1b1047a47a542850425c621d",
            "sha256:5d893bec17ec8e24d443ab57535989ad04a2c0f65498b356a7de990a1c3fe204",
            "sha256:c108a958cfaa05da6f3bcefde507629891d704022dcdb0a1aa8f75e55de7f16f",
            "sha256:8ccbfc857b31a3c8d77c0bd6eb560f24e13239a909af355f51715200d4a6484f",
            "sha256:eb1ab14174f6767006b141aeac3c5bb3b1862ee6242f618db225f1aa7d95ca8d"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-07-14T14:37:58.661833105+08:00"
    }
}

更多版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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