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

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

MongoDB 社区版服务器

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

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

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

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

源镜像 docker.io/mongodb/mongodb-community-server:8.0.9-ubi8
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mongodb/mongodb-community-server:8.0.9-ubi8
镜像ID sha256:0061f2bcc379c88eb691798a56314e7259b4c1b634d1f8a527fafa0a31bfa3bb
镜像TAG 8.0.9-ubi8
大小 1.21GB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD mongod
启动入口 python3 /usr/local/bin/docker-entrypoint.py
工作目录
OS/平台 linux/amd64
浏览量 10 次
贡献者
镜像创建 2025-06-05T06:18:40.625901913Z
同步时间 2025-06-07 09:41
更新时间 2025-06-07 21:04
开放端口
27017/tcp
目录挂载
/data/configdb /data/db
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin container=oci HOME=/data/db
镜像标签
x86_64: architecture 2025-05-29T10:29:14: 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.33.12: 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 1304: release MongoDB Standalone Container: summary https://access.redhat.com/containers/#/registry.access.redhat.com/ubi8/images/8.10-1304: url 967861a8dbbb288b8cec9f1fee7ccbf6c7ee9a20: vcs-ref git: vcs-type MongoDB: vendor 8.0.9: version

Docker拉取命令

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

Containerd拉取命令

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

Shell快速替换命令

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

镜像构建历史


# 2025-06-05 14:18:40  0.00B 设置默认要执行的命令
CMD ["mongod"]
                        
# 2025-06-05 14:18:40  0.00B 声明容器运行时监听的端口
EXPOSE map[27017/tcp:{}]
                        
# 2025-06-05 14:18:40  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["python3" "/usr/local/bin/docker-entrypoint.py"]
                        
# 2025-06-05 14:18:40  0.00B 指定运行容器时使用的用户
USER mongod
                        
# 2025-06-05 14:18:40  0.00B 设置环境变量 HOME
ENV HOME=/data/db
                        
# 2025-06-05 14:18:40  0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/data/db /data/configdb]
                        
# 2025-06-05 14:18:40  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-06-05 14:18:40  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-06-05 14:18:40  0.00B 定义构建参数
ARG HOST_GID
                        
# 2025-06-05 14:18:40  0.00B 定义构建参数
ARG HOST_UID
                        
# 2025-06-05 14:18:40  0.00B 添加元数据标签
LABEL name=MongoDB Standalone version=8.0.9 summary=MongoDB Standalone Container description=Container configured with a standalone instance of MongoDB vendor=MongoDB maintainer=support@mongodb.com
                        
# 2025-06-05 14:18:36  22.06KB 复制新文件或目录到容器中
COPY docker-entrypoint.py /usr/local/bin/docker-entrypoint.py # buildkit
                        
# 2025-06-05 14:18:36  155.00B 复制新文件或目录到容器中
COPY LICENSE /licenses # buildkit
                        
# 2025-06-05 14:18:36  0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir -p licenses # buildkit
                        
# 2025-06-05 14:18:36  49.40MB 执行命令并创建新的镜像层
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-06-05 14:18:31  955.29MB 执行命令并创建新的镜像层
RUN /bin/sh -c dnf update -y --setopt=install_weak_deps=0 &&     dnf install -y --setopt=install_weak_deps=0     mongodb-org-8.0.9 mongodb-org-database-8.0.9     mongodb-org-server-8.0.9     mongodb-org-mongos-8.0.9 mongodb-org-tools-8.0.9     python3 python3-devel python3-pip gcc wget     hostname nss_wrapper procps &&     dnf clean all # buildkit
                        
# 2025-06-05 14:18:02  203.00B 复制新文件或目录到容器中
COPY mongodb-org.repo /etc/yum.repos.d/ # buildkit
                        
# 2025-06-05 14:18:02  0.00B 添加元数据标签
LABEL name=MongoDB Base version=8.0.9 summary=MongoDB Base Container description=Container with all MongoDB packages installed vendor=MongoDB maintainer=support@mongodb.com
                        
# 2025-05-29 18:39:13  205.18MB 
/bin/sh -c mv -fZ /tmp/ubi.repo /etc/yum.repos.d/ubi.repo || :
                        
# 2025-05-29 18:39:11  0.00B 
/bin/sh -c rm -f /tmp/tls-ca-bundle.pem
                        
# 2025-05-29 18:39:11  0.00B 
/bin/sh -c rm -f '/etc/yum.repos.d/repo-228aa.repo' '/etc/yum.repos.d/repo-d786b.repo'
                        
# 2025-05-29 18:39:10  0.00B 
/bin/sh -c #(nop) LABEL "distribution-scope"="public" "vendor"="Red Hat, Inc." "build-date"="2025-05-29T10:29:14" "architecture"="x86_64" "vcs-type"="git" "vcs-ref"="967861a8dbbb288b8cec9f1fee7ccbf6c7ee9a20" "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." "url"="https://access.redhat.com/containers/#/registry.access.redhat.com/ubi8/images/8.10-1304"
                        
# 2025-05-29 18:39:10  0.00B 
/bin/sh -c #(nop) ADD file:d5c177f822c6632edbe0b2877d097d432a2f1a1323bab1585a1ce4c6b06ca406 in /root/buildinfo/Dockerfile-ubi8-8.10-1304 
                        
# 2025-05-29 18:39:10  0.00B 
/bin/sh -c #(nop) ADD file:e91d7259731991f30fd26a35019133af4b4472c7e6ddfb58821cb107b0cfa61a in /root/buildinfo/content_manifests/ubi8-container-8.10-1304.json 
                        
# 2025-05-29 18:39:10  0.00B 
/bin/sh -c #(nop) LABEL release=1304
                        
# 2025-05-29 18:39:10  0.00B 
/bin/sh -c mkdir -p /var/log/rhsm
                        
# 2025-05-29 18:39:09  0.00B 
/bin/sh -c rm -rf /var/log/*
                        
# 2025-05-29 18:39:09  0.00B 
/bin/sh -c #(nop) CMD ["/bin/bash"]
                        
# 2025-05-29 18:39:09  0.00B 
/bin/sh -c #(nop) ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2025-05-29 18:39:09  0.00B 
/bin/sh -c #(nop) ENV container oci
                        
# 2025-05-29 18:39:09  0.00B 
/bin/sh -c #(nop) LABEL io.openshift.tags="base rhel8"
                        
# 2025-05-29 18:39:09  0.00B 
/bin/sh -c #(nop) LABEL io.openshift.expose-services=""
                        
# 2025-05-29 18:39:09  0.00B 
/bin/sh -c #(nop) LABEL io.k8s.display-name="Red Hat Universal Base Image 8"
                        
# 2025-05-29 18:39:09  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-05-29 18:39:09  0.00B 
/bin/sh -c #(nop) LABEL summary="Provides the latest release of Red Hat Universal Base Image 8."
                        
# 2025-05-29 18:39:09  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-05-29 18:39:09  0.00B 
/bin/sh -c #(nop) LABEL com.redhat.component="ubi8-container"       name="ubi8"       version="8.10"
                        
# 2025-05-29 18:39:09  0.00B 
/bin/sh -c #(nop) LABEL maintainer="Red Hat, Inc."
                        
# 2025-05-29 18:39:09  0.00B 
/bin/sh -c #(nop) ADD multi:7175ab93f02f079065f01beca07d710c56ad2a5f2e0f27c437d830db5205fcd3 in /etc/yum.repos.d/ 
                        
# 2025-05-29 18:39:09  0.00B 
/bin/sh -c #(nop) ADD file:df13b6a4fdeac4626ab7cd7e99d16d30edc6e3e5441295ae7691bee26604a5b1 in /tmp/tls-ca-bundle.pem 
                        
# 2025-05-29 18:39:09  0.00B 
/bin/sh -c mv -f /etc/yum.repos.d/ubi.repo /tmp || :
                        
# 2025-05-29 18:39:08  0.00B 
/bin/sh -c #(nop) ADD file:287805a57a7c1afc187d5389ae919bb6c23c15e799bac9abc66d82f15b18e670 in / 
                        
                    

镜像信息

{
    "Id": "sha256:0061f2bcc379c88eb691798a56314e7259b4c1b634d1f8a527fafa0a31bfa3bb",
    "RepoTags": [
        "mongodb/mongodb-community-server:8.0.9-ubi8",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mongodb/mongodb-community-server:8.0.9-ubi8"
    ],
    "RepoDigests": [
        "mongodb/mongodb-community-server@sha256:d8887fb1f814ff6919940c4437ad38924fc468a51066571004aa7671b2480376",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mongodb/mongodb-community-server@sha256:1b4687c192817ca47c2366dee01af3cac6f0d5d29f602064adbb87e68082883f"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2025-06-05T06:18:40.625901913Z",
    "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-05-29T10:29:14",
            "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.33.12",
            "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": "1304",
            "summary": "MongoDB Standalone Container",
            "url": "https://access.redhat.com/containers/#/registry.access.redhat.com/ubi8/images/8.10-1304",
            "vcs-ref": "967861a8dbbb288b8cec9f1fee7ccbf6c7ee9a20",
            "vcs-type": "git",
            "vendor": "MongoDB",
            "version": "8.0.9"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 1209892079,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/1edcf07358390efba49a7333962903a6b061b5a583a9aefec92b61e1ad3eeceb/diff:/var/lib/docker/overlay2/dcddedde4da4a8ba8b36fcf2fc698c619542eb7c26270fe2c3b7c4290471b7bd/diff:/var/lib/docker/overlay2/5b487a7f0ac455f1ef0092b0b67e9ebf434261e732b67011e360d81f6640fb70/diff:/var/lib/docker/overlay2/482d3e7c830dbae242cc3e58029b7bf2479563fe5f94b763016a29e2618ad5d8/diff:/var/lib/docker/overlay2/ff33e87339b08d752c49711f222c69a0235161b71994a60c6901712c8f6e4189/diff:/var/lib/docker/overlay2/00eb4a16f3108c8f94c06e35becfc9a7e5a64628b4ea6cd1fe8cc595fe1171e0/diff:/var/lib/docker/overlay2/b287d2072d8c24321e2f0e5df839be31915609a2a1760be4232509caf3641eca/diff:/var/lib/docker/overlay2/e0f879997de1aaf1611557054ce16ef9e235ceec9908abaa0f8ec8fe1a771141/diff",
            "MergedDir": "/var/lib/docker/overlay2/d15475f5108d08919447d241e1648e9e36f1c166333af51e34c50bf4dd606187/merged",
            "UpperDir": "/var/lib/docker/overlay2/d15475f5108d08919447d241e1648e9e36f1c166333af51e34c50bf4dd606187/diff",
            "WorkDir": "/var/lib/docker/overlay2/d15475f5108d08919447d241e1648e9e36f1c166333af51e34c50bf4dd606187/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:90d9144569e56f87756a30974e28ed37a42d2aa88487c54a5cdc326ff776c60a",
            "sha256:9cd52db47469030a3cf653efd1061db38a58dd093d30253a3a40d62e1678b29e",
            "sha256:888faf61f34aba29a5aec3d1f8a5d4942dbbb2bab50848ebb93ebce87dc58318",
            "sha256:e7fcc2cc0dadc4a869e7f7dcb0a6776e8857fde10875b962e922647ad6da6f25",
            "sha256:ec246656731fbb36fa269f006b88a4811250e73bf570e25571360b082ff476e5",
            "sha256:9f569fcb229f41d3b48698c099a198a1c7b548bf44c9050dbb27cbad99d062a3",
            "sha256:65f597fbe7b12a31d6da429e6df39b034cbe3f49cf5e5380750446e3c3912373",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
            "sha256:9732735f1518a4a12b798dd092014bca0c392e447c3f63b30648d7e4806b6fbd"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-06-07T09:40:11.213270833+08:00"
    }
}

更多版本

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

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

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

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

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

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

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

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