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

docker.io/mongodb/mongodb-community-server:8.2-ubi8 - 国内下载镜像源 浏览次数:8

MongoDB 社区版服务器

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

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

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

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

源镜像 docker.io/mongodb/mongodb-community-server:8.2-ubi8
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mongodb/mongodb-community-server:8.2-ubi8
镜像ID sha256:af12eba30420081635b23b9e4288e7b96dbcc07bc9d73a510512036b16340dcc
镜像TAG 8.2-ubi8
大小 1.25GB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD mongod
启动入口 python3 /usr/local/bin/docker-entrypoint.py
工作目录 /
OS/平台 linux/amd64
浏览量 8 次
贡献者
镜像创建 2025-12-05T06:17:53.428764039Z
同步时间 2025-12-05 22:25
更新时间 2025-12-06 01:12
开放端口
27017/tcp
目录挂载
/data/configdb /data/db
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin container=oci HOME=/data/db GLIBC_TUNABLES=glibc.pthread.rseq=0
镜像标签
x86_64: architecture 2025-11-25T11:43:07Z: build-date ubi8-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:8::appstream: cpe Container configured with a standalone instance of MongoDB: description public: distribution-scope 1.41.4: 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 2a362af58521c5c173e574121f291a4d41088ab7: org.opencontainers.image.revision 1764070939: release MongoDB Standalone Container: summary https://catalog.redhat.com/en/search?searchType=containers: url 2a362af58521c5c173e574121f291a4d41088ab7: vcs-ref git: vcs-type MongoDB: vendor 8.2.2: version

Docker拉取命令

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

Containerd拉取命令

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

Shell快速替换命令

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

镜像构建历史


# 2025-12-05 14:17:53  0.00B 设置默认要执行的命令
CMD ["mongod"]
                        
# 2025-12-05 14:17:53  0.00B 声明容器运行时监听的端口
EXPOSE map[27017/tcp:{}]
                        
# 2025-12-05 14:17:53  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["python3" "/usr/local/bin/docker-entrypoint.py"]
                        
# 2025-12-05 14:17:53  0.00B 设置环境变量 GLIBC_TUNABLES
ENV GLIBC_TUNABLES=glibc.pthread.rseq=0
                        
# 2025-12-05 14:17:53  0.00B 指定运行容器时使用的用户
USER mongod
                        
# 2025-12-05 14:17:53  0.00B 设置环境变量 HOME
ENV HOME=/data/db
                        
# 2025-12-05 14:17:53  0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/data/db /data/configdb]
                        
# 2025-12-05 14:17:53  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-12-05 14:17:53  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-12-05 14:17:53  0.00B 定义构建参数
ARG HOST_GID
                        
# 2025-12-05 14:17:53  0.00B 定义构建参数
ARG HOST_UID
                        
# 2025-12-05 14:17:53  0.00B 添加元数据标签
LABEL name=MongoDB Standalone version=8.2.2 summary=MongoDB Standalone Container description=Container configured with a standalone instance of MongoDB vendor=MongoDB maintainer=support@mongodb.com
                        
# 2025-12-05 14:17:49  27.71KB 复制新文件或目录到容器中
COPY docker-entrypoint.py /usr/local/bin/docker-entrypoint.py # buildkit
                        
# 2025-12-05 14:17:49  155.00B 复制新文件或目录到容器中
COPY LICENSE /licenses # buildkit
                        
# 2025-12-05 14:17:49  0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir -p licenses # buildkit
                        
# 2025-12-05 14:17:49  49.87MB 执行命令并创建新的镜像层
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-12-05 14:17:43  33.11MB 执行命令并创建新的镜像层
RUN /bin/sh -c dnf remove vim vim-minimal -y # buildkit
                        
# 2025-12-05 14:17:42  971.84MB 执行命令并创建新的镜像层
RUN /bin/sh -c dnf update -y --setopt=install_weak_deps=0 &&     dnf install -y --setopt=install_weak_deps=0     mongodb-org-8.2.2 mongodb-org-database-8.2.2     mongodb-org-server-8.2.2     mongodb-org-mongos-8.2.2 mongodb-org-tools-8.2.2     python3 python3-devel python3-pip gcc wget     hostname nss_wrapper procps &&     dnf clean all # buildkit
                        
# 2025-12-05 14:17:11  203.00B 复制新文件或目录到容器中
COPY mongodb-org.repo /etc/yum.repos.d/ # buildkit
                        
# 2025-12-05 14:17:11  0.00B 添加元数据标签
LABEL name=MongoDB Base version=8.2.2 summary=MongoDB Base Container description=Container with all MongoDB packages installed vendor=MongoDB maintainer=support@mongodb.com
                        
# 2025-11-25 19:43:30  198.17MB 
/bin/sh -c #(nop) LABEL "architecture"="x86_64" "vcs-type"="git" "vcs-ref"="2a362af58521c5c173e574121f291a4d41088ab7" "org.opencontainers.image.revision"="2a362af58521c5c173e574121f291a4d41088ab7" "build-date"="2025-11-25T11:43:07Z" "release"="1764070939"org.opencontainers.image.revision=2a362af58521c5c173e574121f291a4d41088ab7
                        
# 2025-11-25 19:43:29  0.00B 
/bin/sh -c #(nop) COPY file:6ea4a20aa1d301ad0f9fd533a31dfd50d4b3db61f19a19580be78363c29aa790 in /root/buildinfo/labels.json      
                        
# 2025-11-25 19:43:29  0.00B 
/bin/sh -c #(nop) COPY file:6ea4a20aa1d301ad0f9fd533a31dfd50d4b3db61f19a19580be78363c29aa790 in /usr/share/buildinfo/labels.json      
                        
# 2025-11-25 19:43:29  0.00B 
/bin/sh -c #(nop) COPY file:3ab5c2f18f7b2afc9a63033cf6d7fedd5acc6eb94e3217a2863e790bced26b9d in /root/buildinfo/content_manifests/content-sets.json      
                        
# 2025-11-25 19:43:29  0.00B 
/bin/sh -c #(nop) COPY file:3ab5c2f18f7b2afc9a63033cf6d7fedd5acc6eb94e3217a2863e790bced26b9d in /usr/share/buildinfo/content-sets.json      
                        
# 2025-11-25 19:43:29  0.00B 
/bin/sh -c #(nop) CMD ["/bin/bash"]
                        
# 2025-11-25 19:43:29  0.00B 
/bin/sh -c #(nop) COPY file:67f65df33ff6c09984969b192c50b78072a88c5655e380e734315d0229c75aa1 in /etc/yum.repos.d/.      
                        
# 2025-11-25 19:43:29  0.00B 
/bin/sh -c #(nop) COPY dir:971325dd18a4b1adf2d05d5fcfaa949e60477c374e082dc9fea7f2ce55a8b13f in /      
                        
# 2025-11-25 19:43:27  0.00B 
/bin/sh -c #(nop) ENV container oci
                        
# 2025-11-25 19:43:27  0.00B 
/bin/sh -c #(nop) LABEL io.openshift.tags="base rhel8"
                        
# 2025-11-25 19:43:27  0.00B 
/bin/sh -c #(nop) LABEL io.openshift.expose-services=""
                        
# 2025-11-25 19:43:27  0.00B 
/bin/sh -c #(nop) LABEL io.k8s.display-name="Red Hat Universal Base Image 8"
                        
# 2025-11-25 19:43:27  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-11-25 19:43:27  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-11-25 19:43:27  0.00B 
/bin/sh -c #(nop) LABEL summary="Provides the latest release of Red Hat Universal Base Image 8."
                        
# 2025-11-25 19:43:27  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-11-25 19:43:27  0.00B 
/bin/sh -c #(nop) LABEL com.redhat.component="ubi8-container"       name="ubi8/ubi"       version="8.10"       cpe="cpe:/a:redhat:enterprise_linux:8::appstream"       distribution-scope="public"
                        
# 2025-11-25 19:43:27  0.00B 
/bin/sh -c #(nop) LABEL url="https://catalog.redhat.com/en/search?searchType=containers"
                        
# 2025-11-25 19:43:27  0.00B 
/bin/sh -c #(nop) LABEL maintainer="Red Hat, Inc."       vendor="Red Hat, Inc."
                        
                    

镜像信息

{
    "Id": "sha256:af12eba30420081635b23b9e4288e7b96dbcc07bc9d73a510512036b16340dcc",
    "RepoTags": [
        "mongodb/mongodb-community-server:8.2-ubi8",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mongodb/mongodb-community-server:8.2-ubi8"
    ],
    "RepoDigests": [
        "mongodb/mongodb-community-server@sha256:91e4d1efe5df397b5e5634e82cd43171b6383a4c92aeb61f047cd5ab7992a074",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mongodb/mongodb-community-server@sha256:d5cf940984ca415764783c7a8f6e15d9ba997f56acf991554bf6c45a052e257b"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2025-12-05T06:17:53.428764039Z",
    "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",
            "GLIBC_TUNABLES=glibc.pthread.rseq=0"
        ],
        "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-11-25T11:43:07Z",
            "com.redhat.component": "ubi8-container",
            "com.redhat.license_terms": "https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI",
            "cpe": "cpe:/a:redhat:enterprise_linux:8::appstream",
            "description": "Container configured with a standalone instance of MongoDB",
            "distribution-scope": "public",
            "io.buildah.version": "1.41.4",
            "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",
            "org.opencontainers.image.revision": "2a362af58521c5c173e574121f291a4d41088ab7",
            "release": "1764070939",
            "summary": "MongoDB Standalone Container",
            "url": "https://catalog.redhat.com/en/search?searchType=containers",
            "vcs-ref": "2a362af58521c5c173e574121f291a4d41088ab7",
            "vcs-type": "git",
            "vendor": "MongoDB",
            "version": "8.2.2"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 1253018877,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/f9bdfd5157af5c6c65c1a761452a0289907b0dbf9a2b274bb68a87311959f013/diff:/var/lib/docker/overlay2/a72a11de378bf8d68ac2a51f58daf5c376feb69daff95b3fabfad78514e85e7f/diff:/var/lib/docker/overlay2/bd2f642f24cd8e7c235165cada5eaa996c5c5f0851a908ef3b74fe6301f8ac53/diff:/var/lib/docker/overlay2/2d8f4465dadf17de745dd72a9a3210e41f91a00e99656b4d6fd3d9a458711c33/diff:/var/lib/docker/overlay2/ead6978c9757c59c1cbdbdeeb38a39eff62e0a1bcae1f8daa0f27d28bf694598/diff:/var/lib/docker/overlay2/e2f9b37622ce7d3be3acb73999a42b4a1a8ffa0f50db013f20f1ec2b49063f23/diff:/var/lib/docker/overlay2/042581a8d972589da4900600f932eea1a78ede0b93cb1e6a6d333d6e304e75aa/diff:/var/lib/docker/overlay2/2c1364ee5d51c795b0d28e031084f4d9d8c78eaeaa99a8f095ad8596e4e0f47d/diff:/var/lib/docker/overlay2/099e8f9023dda77bdef5817737a4860b038e756001f212a30818ba9ebb226ff3/diff",
            "MergedDir": "/var/lib/docker/overlay2/c320321577d3fae5efe38b5c5adc580a60ff8de3464aeae57c18a6af63b9a03c/merged",
            "UpperDir": "/var/lib/docker/overlay2/c320321577d3fae5efe38b5c5adc580a60ff8de3464aeae57c18a6af63b9a03c/diff",
            "WorkDir": "/var/lib/docker/overlay2/c320321577d3fae5efe38b5c5adc580a60ff8de3464aeae57c18a6af63b9a03c/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:9779264f6feb3f95ec650e9d248170671bdebc6c8720e255b9ebe42f4c95c84f",
            "sha256:5bdf78f362433bd000dd3cece69dfdf2a40256e5035911aa38ae724d3d37c378",
            "sha256:5cc77ff555d394ee6f2724ba3195ef994dc8135824229850fce264510eea7a82",
            "sha256:ffc0b1e347779806f1aeeba94dd665c9c1c08baa94d0fbec7cedfc291541e20b",
            "sha256:92f38b92125724efefd5ec126cac4d5187798f27fd3e57313605ea870c32c17a",
            "sha256:8eda80fe8404a98fee4980b1e177efb598cda77fd0e5be4fb4dea2ff4344539d",
            "sha256:77225346a1d6dfc5b7f00ed664bb11eaf63ef12141a48c4709f0b684d485d059",
            "sha256:a89636db4bdf6da8360f21254021a17e73eb22405ce983f714aa97125151a5e2",
            "sha256:c0f1245836b04fc7e5e569c2d714752ebb232a9ab7d37f91ef529471c4b26cbe",
            "sha256:4f7fc508b6f491f1ec0f6528a7be6bb43d9a885e7a59a78835bd182a958185d8"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-12-05T22:24:11.30946395+08:00"
    }
}

更多版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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