logo
docker.io/mongodb/mongodb-community-server:8.2.1-rc1-ubi8
linux/amd64 docker.io xy3666 贡献

MongoDB 社区版服务器

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

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

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

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

538
浏览次数
1.22GB
镜像大小
国内镜像
swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mongodb/mongodb-community-server:8.2.1-rc1-ubi8
源镜像
docker.io/mongodb/mongodb-community-server:8.2.1-rc1-ubi8
镜像ID
sha256:d6c5fcc6f5daf0dfa21399b4587cf6df9a5d443ceea55996a86e14a122643d77
镜像 TAG
8.2.1-rc1-ubi8
镜像大小
1.22GB
平台架构
linux/amd64
镜像源
docker.io
CMD
mongod
启动入口
python3 /usr/local/bin/docker-entrypoint.py
工作目录
/
OS/平台
linux/amd64
镜像创建
2025-09-26T06:17:49.217225223Z
同步时间
2025-09-26 19:00
浏览量
538 次
贡献者
avatar xy3666
🔌 开放端口 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-08-26T08:02:50 build-date
ubi8-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.40.1 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 8 io.k8s.display-name
io.openshift.expose-services
base rhel8 io.openshift.tags
support@mongodb.com maintainer
MongoDB Standalone name
1756195303 release
MongoDB Standalone Container summary
https://catalog.redhat.com/en/search?searchType=containers url
f4ddae6093891049987b044fba128eb011bc877f vcs-ref
git vcs-type
MongoDB vendor
8.2.1-rc1 version

Docker拉取命令

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mongodb/mongodb-community-server:8.2.1-rc1-ubi8
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mongodb/mongodb-community-server:8.2.1-rc1-ubi8  docker.io/mongodb/mongodb-community-server:8.2.1-rc1-ubi8

Containerd拉取命令

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

Shell快速替换命令

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

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.2.1-rc1-ubi8 && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mongodb/mongodb-community-server:8.2.1-rc1-ubi8  docker.io/mongodb/mongodb-community-server:8.2.1-rc1-ubi8'

镜像构建历史


# 2025-09-26 14:17:49  0.00B 设置默认要执行的命令
CMD ["mongod"]
                        
# 2025-09-26 14:17:49  0.00B 声明容器运行时监听的端口
EXPOSE map[27017/tcp:{}]
                        
# 2025-09-26 14:17:49  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["python3" "/usr/local/bin/docker-entrypoint.py"]
                        
# 2025-09-26 14:17:49  0.00B 指定运行容器时使用的用户
USER mongod
                        
# 2025-09-26 14:17:49  0.00B 设置环境变量 HOME
ENV HOME=/data/db
                        
# 2025-09-26 14:17:49  0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/data/db /data/configdb]
                        
# 2025-09-26 14:17:49  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-09-26 14:17:48  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-09-26 14:17:48  0.00B 定义构建参数
ARG HOST_GID
                        
# 2025-09-26 14:17:48  0.00B 定义构建参数
ARG HOST_UID
                        
# 2025-09-26 14:17:48  0.00B 添加元数据标签
LABEL name=MongoDB Standalone version=8.2.1-rc1 summary=MongoDB Standalone Container description=Container configured with a standalone instance of MongoDB vendor=MongoDB maintainer=support@mongodb.com
                        
# 2025-09-26 14:17:45  27.59KB 复制新文件或目录到容器中
COPY docker-entrypoint.py /usr/local/bin/docker-entrypoint.py # buildkit
                        
# 2025-09-26 14:17:45  155.00B 复制新文件或目录到容器中
COPY LICENSE /licenses # buildkit
                        
# 2025-09-26 14:17:45  0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir -p licenses # buildkit
                        
# 2025-09-26 14:17:44  50.27MB 执行命令并创建新的镜像层
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-09-26 14:17:39  971.13MB 执行命令并创建新的镜像层
RUN /bin/sh -c dnf update -y --setopt=install_weak_deps=0 &&     dnf install -y --setopt=install_weak_deps=0      mongodb-org-8.2.1-0.1.rc1.el8 mongodb-org-database-8.2.1-0.1.rc1.el8     mongodb-org-server-8.2.1-0.1.rc1.el8     mongodb-org-mongos-8.2.1-0.1.rc1.el8 mongodb-org-tools-8.2.1-0.1.rc1.el8     python3 python3-devel python3-pip gcc wget     hostname nss_wrapper procps &&     dnf clean all # buildkit
                        
# 2025-09-26 14:17:07  203.00B 复制新文件或目录到容器中
COPY mongodb-org.repo /etc/yum.repos.d/ # buildkit
                        
# 2025-09-26 14:17:07  149.00B 复制新文件或目录到容器中
COPY mongodb-org-rc.repo /etc/yum.repos.d/ # buildkit
                        
# 2025-09-26 14:17:07  0.00B 添加元数据标签
LABEL name=MongoDB Base version=8.2.1-rc1 summary=MongoDB Base Container description=Container with all MongoDB packages installed vendor=MongoDB maintainer=support@mongodb.com
                        
# 2025-08-26 16:03:21  198.02MB 
/bin/sh -c #(nop) LABEL "build-date"="2025-08-26T08:02:50" "architecture"="x86_64" "vcs-type"="git" "vcs-ref"="f4ddae6093891049987b044fba128eb011bc877f" "release"="1756195303"
                        
# 2025-08-26 16:03:20  0.00B 
/bin/sh -c #(nop) COPY file:4fc2b85d4b7e8ce5ef1064a117c7b15bf152228d41e9d1f60b4cd3533a999046 in /root/buildinfo/content_manifests/content-sets.json 
                        
# 2025-08-26 16:03:20  0.00B 
/bin/sh -c #(nop) COPY file:4fc2b85d4b7e8ce5ef1064a117c7b15bf152228d41e9d1f60b4cd3533a999046 in /usr/share/buildinfo/content-sets.json 
                        
# 2025-08-26 16:03:19  0.00B 
/bin/sh -c #(nop) CMD ["/bin/bash"]
                        
# 2025-08-26 16:03:19  0.00B 
/bin/sh -c #(nop) COPY file:afdf9d7142d806831a8f0b36122a4294ffe97fb9463ad8299eef9d7acd444874 in /etc/yum.repos.d/. 
                        
# 2025-08-26 16:03:19  0.00B 
/bin/sh -c #(nop) COPY dir:1bc6550a1ed29adfe98ed81579fa503a693199b21316f14ff48cdcee47cfe8b4 in / 
                        
# 2025-08-26 16:03:17  0.00B 
/bin/sh -c #(nop) ENV container oci
                        
# 2025-08-26 16:03:17  0.00B 
/bin/sh -c #(nop) LABEL io.openshift.tags="base rhel8"
                        
# 2025-08-26 16:03:17  0.00B 
/bin/sh -c #(nop) LABEL io.openshift.expose-services=""
                        
# 2025-08-26 16:03:17  0.00B 
/bin/sh -c #(nop) LABEL io.k8s.display-name="Red Hat Universal Base Image 8"
                        
# 2025-08-26 16:03:17  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-08-26 16:03:17  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-08-26 16:03:17  0.00B 
/bin/sh -c #(nop) LABEL summary="Provides the latest release of Red Hat Universal Base Image 8."
                        
# 2025-08-26 16:03:17  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-08-26 16:03:16  0.00B 
/bin/sh -c #(nop) LABEL com.redhat.component="ubi8-container"       name="ubi8"       version="8.10"       distribution-scope="public"
                        
# 2025-08-26 16:03:16  0.00B 
/bin/sh -c #(nop) LABEL url="https://catalog.redhat.com/en/search?searchType=containers"
                        
# 2025-08-26 16:03:16  0.00B 
/bin/sh -c #(nop) LABEL maintainer="Red Hat, Inc."       vendor="Red Hat, Inc."
                        
                    

镜像信息

{
    "Id": "sha256:d6c5fcc6f5daf0dfa21399b4587cf6df9a5d443ceea55996a86e14a122643d77",
    "RepoTags": [
        "mongodb/mongodb-community-server:8.2.1-rc1-ubi8",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mongodb/mongodb-community-server:8.2.1-rc1-ubi8"
    ],
    "RepoDigests": [
        "mongodb/mongodb-community-server@sha256:17d755a85f208822c4315ce11d48f8c2cc2ee5aaf69e76b853799b20d2c07056",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mongodb/mongodb-community-server@sha256:459e799a56f8b3b0fb8fffac28d9709a85a3ac083504cafddcd244edf859feae"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2025-09-26T06:17:49.217225223Z",
    "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-08-26T08:02:50",
            "com.redhat.component": "ubi8-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.40.1",
            "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 8",
            "io.openshift.expose-services": "",
            "io.openshift.tags": "base rhel8",
            "maintainer": "support@mongodb.com",
            "name": "MongoDB Standalone",
            "release": "1756195303",
            "summary": "MongoDB Standalone Container",
            "url": "https://catalog.redhat.com/en/search?searchType=containers",
            "vcs-ref": "f4ddae6093891049987b044fba128eb011bc877f",
            "vcs-type": "git",
            "vendor": "MongoDB",
            "version": "8.2.1-rc1"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 1219452956,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/0157daf3621ca647ccd5b2a7830a19ef31dfd8690f1e6496ad541eef7a20510b/diff:/var/lib/docker/overlay2/aea017a5880548d61215fa55d42dc78fc28cd33644d0a4b912bbb0d45176d951/diff:/var/lib/docker/overlay2/690be745a07cb2ab5ab9ba0d63457d79cf6a0812b3e6d50c2632dab65580da59/diff:/var/lib/docker/overlay2/b7582504fe8fe6bba0ccb62c7757e369f5a13cb6d26d5ff9adf708293b3da958/diff:/var/lib/docker/overlay2/a1d686b616e437d4c0a1de02a4dd7ba500b6f24334014911f3dbcee7d30d6ac1/diff:/var/lib/docker/overlay2/ecbe0697e51b24e1faa7a1c3ecffaadfb16a038bea963e8cc59b774d83ff7863/diff:/var/lib/docker/overlay2/189a987fe713217d19ee986e0e73a0ddac42dead2b177cdb0b24415cfe2b11a2/diff:/var/lib/docker/overlay2/671a9af49ea0cef480fcca77c64d5b93d9625a32acd87d278c4def357df6e098/diff:/var/lib/docker/overlay2/7140bb7f7df369d644534cd637f93ce43f100c03120b67123132ba0c6b90336d/diff",
            "MergedDir": "/var/lib/docker/overlay2/a4e7d0e471d54d521acea62dae0278052a2914e4cf6f148612870fa425367761/merged",
            "UpperDir": "/var/lib/docker/overlay2/a4e7d0e471d54d521acea62dae0278052a2914e4cf6f148612870fa425367761/diff",
            "WorkDir": "/var/lib/docker/overlay2/a4e7d0e471d54d521acea62dae0278052a2914e4cf6f148612870fa425367761/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:a251e76744259d826503539dbbd24000dcbdef5e64ce2183af2b3023ce1d3850",
            "sha256:b520f5167a2e7eb8515cfd83866f44b27286cc291d78cac434057cc87937c94f",
            "sha256:d3ff3d370895a83efe5f92e81e3841826d6a2ad1e8bd2789d9a0d3eb7b3af482",
            "sha256:4063b9d8d5ff1313eec358936704392c482cc12a51393e47b84dbc3aefb903b8",
            "sha256:f25acee8f3dda79639316597b7eacff4dd9ddf6c5d786e271f4ce2780468b603",
            "sha256:93e643bfd6eb090ed430d106f04f0886325c9c084be1f9aacfef88e534de0a14",
            "sha256:90b9ba280091257b1872aeea9c108af8f1b91b51c6fa4789a7401f8a8542360a",
            "sha256:66a48c9d3d7eb31d2379a1532c1c30549203f4cdb87acbb5686cd467012880df",
            "sha256:c7045ef427da587bbaf5c11a943392ec2e00828aa3240b240bf916f9da274521",
            "sha256:acb05e384160764cb3280a74ecbbecbd2e2c211b529471392c811dcf215d259c"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-09-26T18:59:28.565845321+08:00"
    }
}

更多版本

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

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

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

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

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

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

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
456

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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