docker.io/library/mongo:7.0 linux/amd64

docker.io/library/mongo:7.0 - 国内下载镜像源 浏览次数:50 安全受验证的发布者-Docker

MongoDB是一个开源的NoSQL数据库解决方案,提供了高性能、高可扩展性和灵活的数据存储方式。该镜像用于运行MongoDB实例,可以用于开发、测试和生产环境中。

源镜像 docker.io/library/mongo:7.0
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/mongo:7.0
镜像ID sha256:e0d7f1b1df90d956db6a421ea351666ae2912df10c149bb0b0ae7c896bcba1f5
镜像TAG 7.0
大小 782.27MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD mongod
启动入口 docker-entrypoint.sh
工作目录
OS/平台 linux/amd64
浏览量 50 次
贡献者 69******1@qq.com
镜像创建 2024-10-25T04:11:28Z
同步时间 2024-12-04 22:49
更新时间 2024-12-27 02:29
开放端口
27017/tcp
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin GOSU_VERSION=1.17 JSYAML_VERSION=3.13.1 JSYAML_CHECKSUM=662e32319bdd378e91f67578e56a34954b0a2e33aca11d70ab9f4826af24b941 MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org MONGO_MAJOR=7.0 MONGO_VERSION=7.0.15 HOME=/data/db
镜像标签
ubuntu: org.opencontainers.image.ref.name 22.04: org.opencontainers.image.version
镜像安全扫描 查看Trivy扫描报告

系统OS: ubuntu 22.04 扫描引擎: Trivy 扫描时间: 2024-12-04 22:50

低危漏洞:37 中危漏洞:36 高危漏洞:30 严重漏洞:3

Docker拉取命令 无权限下载?点我修复

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/mongo:7.0
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/mongo:7.0  docker.io/library/mongo:7.0

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/mongo:7.0
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/mongo:7.0  docker.io/library/mongo:7.0

Shell快速替换命令

sed -i 's#library/mongo:7.0#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/mongo:7.0#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/mongo:7.0 && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/mongo:7.0  docker.io/library/mongo:7.0'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/mongo:7.0 && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/mongo:7.0  docker.io/library/mongo:7.0'

镜像构建历史


# 2024-10-25 12:11:28  0.00B 设置默认要执行的命令
CMD ["mongod"]
                        
# 2024-10-25 12:11:28  0.00B 声明容器运行时监听的端口
EXPOSE map[27017/tcp:{}]
                        
# 2024-10-25 12:11:28  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["docker-entrypoint.sh"]
                        
# 2024-10-25 12:11:28  14.17KB 复制新文件或目录到容器中
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
                        
# 2024-10-25 12:11:28  0.00B 设置环境变量 HOME
ENV HOME=/data/db
                        
# 2024-10-25 12:11:28  0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/data/db /data/configdb]
                        
# 2024-10-25 12:11:28  696.87MB 执行命令并创建新的镜像层
RUN |2 MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org /bin/sh -c set -x 	&& export DEBIAN_FRONTEND=noninteractive 	&& apt-get update 	&& apt-get install -y 		${MONGO_PACKAGE}=$MONGO_VERSION 		${MONGO_PACKAGE}-server=$MONGO_VERSION 		${MONGO_PACKAGE}-shell=$MONGO_VERSION 		${MONGO_PACKAGE}-mongos=$MONGO_VERSION 		${MONGO_PACKAGE}-tools=$MONGO_VERSION 		${MONGO_PACKAGE}-database=$MONGO_VERSION 		${MONGO_PACKAGE}-database-tools-extra=$MONGO_VERSION 	&& rm -rf /var/lib/apt/lists/* 	&& rm -rf /var/lib/mongodb 	&& mv /etc/mongod.conf /etc/mongod.conf.orig # buildkit
                        
# 2024-10-25 12:11:28  0.00B 设置环境变量 MONGO_VERSION
ENV MONGO_VERSION=7.0.15
                        
# 2024-10-25 12:11:28  116.00B 执行命令并创建新的镜像层
RUN |2 MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org /bin/sh -c echo "deb [ signed-by=/etc/apt/keyrings/mongodb.asc ] http://$MONGO_REPO/apt/ubuntu jammy/${MONGO_PACKAGE%-unstable}/$MONGO_MAJOR multiverse" | tee "/etc/apt/sources.list.d/${MONGO_PACKAGE%-unstable}.list" # buildkit
                        
# 2024-10-25 12:11:28  0.00B 设置环境变量 MONGO_MAJOR
ENV MONGO_MAJOR=7.0
                        
# 2024-10-25 12:11:28  0.00B 设置环境变量 MONGO_PACKAGE MONGO_REPO
ENV MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org
                        
# 2024-10-25 12:11:28  0.00B 定义构建参数
ARG MONGO_REPO=repo.mongodb.org
                        
# 2024-10-25 12:11:28  0.00B 定义构建参数
ARG MONGO_PACKAGE=mongodb-org
                        
# 2024-10-25 12:11:28  0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
                        
# 2024-10-25 12:11:28  2.94MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 		savedAptMark="$(apt-mark showmanual)"; 	apt-get update; 	apt-get install -y --no-install-recommends 		gnupg 		wget 	; 	rm -rf /var/lib/apt/lists/*; 		dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; 	wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; 	wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; 	export GNUPGHOME="$(mktemp -d)"; 	gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; 	gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; 	gpgconf --kill all; 	rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; 		mkdir -p /opt/js-yaml/; 	wget -O /opt/js-yaml/js-yaml.tgz https://registry.npmjs.org/js-yaml/-/js-yaml-${JSYAML_VERSION}.tgz; 	echo "$JSYAML_CHECKSUM */opt/js-yaml/js-yaml.tgz" | sha256sum -c -; 	tar -xz --strip-components=1 -f /opt/js-yaml/js-yaml.tgz -C /opt/js-yaml package/dist/js-yaml.js package/package.json; 	rm /opt/js-yaml/js-yaml.tgz; 	ln -s /opt/js-yaml/dist/js-yaml.js /js-yaml.js; 		export GNUPGHOME="$(mktemp -d)"; 	wget -O KEYS 'https://pgp.mongodb.com/server-7.0.asc'; 	gpg --batch --import KEYS; 	mkdir -p /etc/apt/keyrings; 	gpg --batch --export --armor 'E58830201F7DD82CD808AA84160D26BB1785BA38' > /etc/apt/keyrings/mongodb.asc; 	gpgconf --kill all; 	rm -rf "$GNUPGHOME" KEYS; 		apt-mark auto '.*' > /dev/null; 	apt-mark manual $savedAptMark > /dev/null; 	apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; 		chmod +x /usr/local/bin/gosu; 	gosu --version; 	gosu nobody true # buildkit
                        
# 2024-10-25 12:11:28  0.00B 设置环境变量 JSYAML_CHECKSUM
ENV JSYAML_CHECKSUM=662e32319bdd378e91f67578e56a34954b0a2e33aca11d70ab9f4826af24b941
                        
# 2024-10-25 12:11:28  0.00B 设置环境变量 JSYAML_VERSION
ENV JSYAML_VERSION=3.13.1
                        
# 2024-10-25 12:11:28  0.00B 设置环境变量 GOSU_VERSION
ENV GOSU_VERSION=1.17
                        
# 2024-10-25 12:11:28  4.26MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	apt-get update; 	apt-get install -y --no-install-recommends 		ca-certificates 		jq 		numactl 		procps 	; 	rm -rf /var/lib/apt/lists/* # buildkit
                        
# 2024-10-25 12:11:28  328.57KB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	groupadd --gid 999 --system mongodb; 	useradd --uid 999 --system --gid mongodb --home-dir /data/db mongodb; 	mkdir -p /data/db /data/configdb; 	chown -R mongodb:mongodb /data/db /data/configdb # buildkit
                        
# 2024-09-12 00:25:18  0.00B 
/bin/sh -c #(nop)  CMD ["/bin/bash"]
                        
# 2024-09-12 00:25:17  77.86MB 
/bin/sh -c #(nop) ADD file:ebe009f86035c175ba244badd298a2582914415cf62783d510eab3a311a5d4e1 in / 
                        
# 2024-09-12 00:25:16  0.00B 
/bin/sh -c #(nop)  LABEL org.opencontainers.image.version=22.04
                        
# 2024-09-12 00:25:16  0.00B 
/bin/sh -c #(nop)  LABEL org.opencontainers.image.ref.name=ubuntu
                        
# 2024-09-12 00:25:16  0.00B 
/bin/sh -c #(nop)  ARG LAUNCHPAD_BUILD_ARCH
                        
# 2024-09-12 00:25:16  0.00B 
/bin/sh -c #(nop)  ARG RELEASE
                        
                    

镜像信息

{
    "Id": "sha256:e0d7f1b1df90d956db6a421ea351666ae2912df10c149bb0b0ae7c896bcba1f5",
    "RepoTags": [
        "mongo:7.0",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/mongo:7.0"
    ],
    "RepoDigests": [
        "mongo@sha256:8ff7333c6a9fbc00597fcce4c836e8bcc6b29fd34d49259479c43174e32d72be",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/mongo@sha256:07f76000f2edb06085902f10ea904442cfc450a8d99322e7b25b76d63a3925cc"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-10-25T04:11:28Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "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",
            "GOSU_VERSION=1.17",
            "JSYAML_VERSION=3.13.1",
            "JSYAML_CHECKSUM=662e32319bdd378e91f67578e56a34954b0a2e33aca11d70ab9f4826af24b941",
            "MONGO_PACKAGE=mongodb-org",
            "MONGO_REPO=repo.mongodb.org",
            "MONGO_MAJOR=7.0",
            "MONGO_VERSION=7.0.15",
            "HOME=/data/db"
        ],
        "Cmd": [
            "mongod"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": {
            "/data/configdb": {},
            "/data/db": {}
        },
        "WorkingDir": "",
        "Entrypoint": [
            "docker-entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": {
            "org.opencontainers.image.ref.name": "ubuntu",
            "org.opencontainers.image.version": "22.04"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 782268904,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/50c19faaa47ba95d51f9710ea394b4fb07fa5730aa53f8341526ad55120c3c63/diff:/var/lib/docker/overlay2/893a17954ec67c62ddd1d94f4d38f543317cc78eaa91fc86743d91d0993709ce/diff:/var/lib/docker/overlay2/067a1fbf19fcd0d73effd356ee5aae880203365163ec22ccfa76829b025fcc1b/diff:/var/lib/docker/overlay2/a8e666b99cdf9d9535216eb5e4cf2f298cd2c9a9dd2d0cc47f3d9dca9934c420/diff:/var/lib/docker/overlay2/f9b27c1c7943e33bbda28de99b1718a743910eb9d172facc531052b058ec45a4/diff:/var/lib/docker/overlay2/652a9c2168bc277102afc3bb080914adcef9632e417b2d37b9cd7fc49db69dff/diff:/var/lib/docker/overlay2/4cfb2ff6eb670d08d805fcc326973c76acabc424b2f6ce5f1903149f34750452/diff",
            "MergedDir": "/var/lib/docker/overlay2/5ff1b048e5fdffe604444190f161cbd2c9bea02a228037f48255843f2ddd26ea/merged",
            "UpperDir": "/var/lib/docker/overlay2/5ff1b048e5fdffe604444190f161cbd2c9bea02a228037f48255843f2ddd26ea/diff",
            "WorkDir": "/var/lib/docker/overlay2/5ff1b048e5fdffe604444190f161cbd2c9bea02a228037f48255843f2ddd26ea/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:2573e0d8158209ed54ab25c87bcdcb00bd3d2539246960a3d592a1c599d70465",
            "sha256:3d7602297a7834b8989bf91f0b68a02050b9d59eb65a2f8c7ac88574c6140162",
            "sha256:561bdbff10569ca6993b0976f7c26f5e5b0f7dcf456144d2a498abe7cdc7d40c",
            "sha256:d750163d77bbb30e7d954c3934c8ee339dbfbe266fa8ad6ef831fc33e11f1328",
            "sha256:159721489058beb064353f7fd96529169859c96fcbc0b6262d8294177bfee9f7",
            "sha256:794841dbfbee049e970efa90c90b66450b639265a2063017b26c5d6dbfa3c4ed",
            "sha256:0ecd3470da5215ecf4d22af4a7f3fcf74205111acb55910a3c0e867916c47485",
            "sha256:154876527ce89b63a8974623486220b83b9e9ee6ab356977c175370152c2f49b"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-12-04T22:48:42.673087971+08:00"
    }
}

更多版本

docker.io/library/mongo:4.4

linux/amd64 docker.io427.29MB2024-07-08 12:51
527

docker.io/library/mongo:7.0.12

linux/arm64 docker.io760.57MB2024-07-09 00:53
370

docker.io/library/mongo:7.0.12

linux/amd64 docker.io795.86MB2024-07-09 10:13
352

docker.io/library/mongo:4.2.24-bionic

linux/amd64 docker.io388.32MB2024-08-27 14:04
141

docker.io/library/mongo:6.0.14-jammy

linux/amd64 docker.io690.59MB2024-10-31 20:11
94

docker.io/library/mongo:7.0

linux/amd64 docker.io782.27MB2024-12-04 22:49
49

docker.io/library/mongo:4.2.1

linux/amd64 docker.io362.71MB2024-12-10 09:23
27