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

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

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

源镜像 docker.io/library/mongo:4.2.1
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/mongo:4.2.1
镜像ID sha256:965553e202a44592bc26d8c076eafef996a6dfc0de5bb2c1cf1795cd3b3a7373
镜像TAG 4.2.1
大小 362.71MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD mongod
启动入口 docker-entrypoint.sh
工作目录
OS/平台 linux/amd64
浏览量 27 次
贡献者
镜像创建 2019-11-01T00:35:30.899770643Z
同步时间 2024-12-10 09:23
更新时间 2024-12-26 03:32
开放端口
27017/tcp
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin GOSU_VERSION=1.11 JSYAML_VERSION=3.13.0 GPG_KEYS=E162F504A20CDF15827F718D4B7C549A058F8B6B MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org MONGO_MAJOR=4.2 MONGO_VERSION=4.2.1
镜像安全扫描 查看Trivy扫描报告

系统OS: ubuntu 18.04 扫描引擎: Trivy 扫描时间: 2024-12-10 09:24

低危漏洞:161 中危漏洞:248 高危漏洞:15 严重漏洞:0

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

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2019-11-01 08:35:30  0.00B 
/bin/sh -c #(nop)  CMD ["mongod"]
                        
# 2019-11-01 08:35:30  0.00B 
/bin/sh -c #(nop)  EXPOSE 27017
                        
# 2019-11-01 08:35:30  0.00B 
/bin/sh -c #(nop)  ENTRYPOINT ["docker-entrypoint.sh"]
                        
# 2019-11-01 08:35:30  11.31KB 
/bin/sh -c #(nop) COPY file:021686a669d0d1d1cbb99d6ca84ff8de10577b78ea985b8cdab9d75b347a3bd0 in /usr/local/bin/ 
                        
# 2019-11-01 08:35:30  0.00B 
/bin/sh -c #(nop)  VOLUME [/data/db /data/configdb]
                        
# 2019-11-01 08:35:29  0.00B 
/bin/sh -c mkdir -p /data/db /data/configdb 	&& chown -R mongodb:mongodb /data/db /data/configdb
                        
# 2019-11-01 08:35:29  277.26MB 
/bin/sh -c set -x 	&& 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 	&& rm -rf /var/lib/apt/lists/* 	&& rm -rf /var/lib/mongodb 	&& mv /etc/mongod.conf /etc/mongod.conf.orig
                        
# 2019-11-01 08:35:11  73.00B 
/bin/sh -c echo "deb http://$MONGO_REPO/apt/ubuntu bionic/${MONGO_PACKAGE%-unstable}/$MONGO_MAJOR multiverse" | tee "/etc/apt/sources.list.d/${MONGO_PACKAGE%-unstable}.list"
                        
# 2019-11-01 08:35:11  0.00B 
/bin/sh -c #(nop)  ENV MONGO_VERSION=4.2.1
                        
# 2019-11-01 08:35:10  0.00B 
/bin/sh -c #(nop)  ENV MONGO_MAJOR=4.2
                        
# 2019-11-01 08:35:10  0.00B 
/bin/sh -c #(nop)  ENV MONGO_PACKAGE=mongodb-org MONGO_REPO=repo.mongodb.org
                        
# 2019-11-01 08:35:10  0.00B 
/bin/sh -c #(nop)  ARG MONGO_REPO=repo.mongodb.org
                        
# 2019-11-01 08:35:10  0.00B 
/bin/sh -c #(nop)  ARG MONGO_PACKAGE=mongodb-org
                        
# 2019-11-01 08:35:10  1.16KB 
/bin/sh -c set -ex; 	export GNUPGHOME="$(mktemp -d)"; 	for key in $GPG_KEYS; do 		gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; 	done; 	gpg --batch --export $GPG_KEYS > /etc/apt/trusted.gpg.d/mongodb.gpg; 	command -v gpgconf && gpgconf --kill all || :; 	rm -r "$GNUPGHOME"; 	apt-key list
                        
# 2019-11-01 08:35:09  0.00B 
/bin/sh -c #(nop)  ENV GPG_KEYS=E162F504A20CDF15827F718D4B7C549A058F8B6B
                        
# 2019-11-01 08:35:09  0.00B 
/bin/sh -c mkdir /docker-entrypoint-initdb.d
                        
# 2019-11-01 08:35:07  13.34MB 
/bin/sh -c set -ex; 		savedAptMark="$(apt-mark showmanual)"; 	apt-get update; 	apt-get install -y --no-install-recommends 		wget 	; 	if ! command -v gpg > /dev/null; then 		apt-get install -y --no-install-recommends gnupg dirmngr; 		savedAptMark="$savedAptMark gnupg dirmngr"; 	elif gpg --version | grep -q '^gpg (GnuPG) 1\.'; then 		apt-get install -y --no-install-recommends gnupg-curl; 	fi; 	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; 	command -v gpgconf && gpgconf --kill all || :; 	rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc; 	chmod +x /usr/local/bin/gosu; 	gosu --version; 	gosu nobody true; 		wget -O /js-yaml.js "https://github.com/nodeca/js-yaml/raw/${JSYAML_VERSION}/dist/js-yaml.js"; 		apt-mark auto '.*' > /dev/null; 	apt-mark manual $savedAptMark > /dev/null; 	apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
                        
# 2019-11-01 08:34:56  0.00B 
/bin/sh -c #(nop)  ENV JSYAML_VERSION=3.13.0
                        
# 2019-11-01 08:34:56  0.00B 
/bin/sh -c #(nop)  ENV GOSU_VERSION=1.11
                        
# 2019-11-01 08:34:55  7.51MB 
/bin/sh -c set -eux; 	apt-get update; 	apt-get install -y --no-install-recommends 		ca-certificates 		jq 		numactl 	; 	if ! command -v ps > /dev/null; then 		apt-get install -y --no-install-recommends procps; 	fi; 	rm -rf /var/lib/apt/lists/*
                        
# 2019-11-01 08:34:46  392.58KB 
/bin/sh -c groupadd -r mongodb && useradd -r -g mongodb mongodb
                        
# 2019-11-01 06:20:37  0.00B 
/bin/sh -c #(nop)  CMD ["/bin/bash"]
                        
# 2019-11-01 06:20:37  7.00B 
/bin/sh -c mkdir -p /run/systemd && echo 'docker' > /run/systemd/container
                        
# 2019-11-01 06:20:36  745.00B 
/bin/sh -c set -xe 		&& echo '#!/bin/sh' > /usr/sbin/policy-rc.d 	&& echo 'exit 101' >> /usr/sbin/policy-rc.d 	&& chmod +x /usr/sbin/policy-rc.d 		&& dpkg-divert --local --rename --add /sbin/initctl 	&& cp -a /usr/sbin/policy-rc.d /sbin/initctl 	&& sed -i 's/^exit.*/exit 0/' /sbin/initctl 		&& echo 'force-unsafe-io' > /etc/dpkg/dpkg.cfg.d/docker-apt-speedup 		&& echo 'DPkg::Post-Invoke { "rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true"; };' > /etc/apt/apt.conf.d/docker-clean 	&& echo 'APT::Update::Post-Invoke { "rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true"; };' >> /etc/apt/apt.conf.d/docker-clean 	&& echo 'Dir::Cache::pkgcache ""; Dir::Cache::srcpkgcache "";' >> /etc/apt/apt.conf.d/docker-clean 		&& echo 'Acquire::Languages "none";' > /etc/apt/apt.conf.d/docker-no-languages 		&& echo 'Acquire::GzipIndexes "true"; Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/docker-gzip-indexes 		&& echo 'Apt::AutoRemove::SuggestsImportant "false";' > /etc/apt/apt.conf.d/docker-autoremove-suggests
                        
# 2019-11-01 06:20:36  987.49KB 
/bin/sh -c [ -z "$(apt-get indextargets)" ]
                        
# 2019-11-01 06:20:35  63.21MB 
/bin/sh -c #(nop) ADD file:a48a5dc1b9dbfc632f6cf86fe27b770b63f07a115c98c4465dc184e303a4efa1 in / 
                        
                    

镜像信息

{
    "Id": "sha256:965553e202a44592bc26d8c076eafef996a6dfc0de5bb2c1cf1795cd3b3a7373",
    "RepoTags": [
        "mongo:4.2.1",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/mongo:4.2.1"
    ],
    "RepoDigests": [
        "mongo@sha256:6ca49afbcb2b44aedf53f5f27b20c99813f500981b6d62193aa770e8340461cb",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/mongo@sha256:52c3314bee611f91d37b9b1bc0cc2755b1388f2de5b396b441f3fe94bef6c56c"
    ],
    "Parent": "",
    "Comment": "",
    "Created": "2019-11-01T00:35:30.899770643Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "18.06.1-ce",
    "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.11",
            "JSYAML_VERSION=3.13.0",
            "GPG_KEYS=E162F504A20CDF15827F718D4B7C549A058F8B6B",
            "MONGO_PACKAGE=mongodb-org",
            "MONGO_REPO=repo.mongodb.org",
            "MONGO_MAJOR=4.2",
            "MONGO_VERSION=4.2.1"
        ],
        "Cmd": [
            "mongod"
        ],
        "ArgsEscaped": true,
        "Image": "sha256:c6e4c30a342d5b4cad6ba15694bcc651ca2b9ad1f24ecd0f926f30d75788db26",
        "Volumes": {
            "/data/configdb": {},
            "/data/db": {}
        },
        "WorkingDir": "",
        "Entrypoint": [
            "docker-entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 362705820,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/24428c8eb20890bb38bb3868198f101b673e82cb48f0b70b04df7fcd49313063/diff:/var/lib/docker/overlay2/bea8b600d96ee2524051a24da2d1318aeffe21d6f4c05502027cbdd9d0650f11/diff:/var/lib/docker/overlay2/63ca1c69a43b4f2d5ba6329aa71542e2011356ae5e108d3636204ad56d5b2aba/diff:/var/lib/docker/overlay2/3aaa1babbbb760eebe3f0b5558c1c430a3e05406bdc4099945e16a52d6899c40/diff:/var/lib/docker/overlay2/7a650299d1a6be6d8e9259424e30104a1c2e3734c18bdfb11f6ff9421bcae7a5/diff:/var/lib/docker/overlay2/5d7f7a142521835e52ed3e84b24e61655176f8477042feb82f25197f02ccc754/diff:/var/lib/docker/overlay2/d04e89ba1c2c0a20387eaf6a5d4adddfc0e4b3b358b30c83a04bf84243fbca92/diff:/var/lib/docker/overlay2/3808b0bf9274f2daffdcf8698694106f8764929421e16245e5b42e4c8e91afdc/diff:/var/lib/docker/overlay2/71f1e49ebb04d620c724164158d758eb771b1ddde7a57cce2ccbbfa5ff9ce1a9/diff:/var/lib/docker/overlay2/f1285c5af49a8e23037f0a5c081a8f0bd30dd813e81430a71a2fcd6b54287a01/diff:/var/lib/docker/overlay2/d8848e45974e2683158ca66d4a68a1375286789fe5f7d31104d064e42a351f7d/diff:/var/lib/docker/overlay2/c3a389da87a4b3fe5291b3888ba855cc01bcfcae68cddd307c60aa0470ac33b9/diff",
            "MergedDir": "/var/lib/docker/overlay2/7e086fd2bc06747b9a383f0568e32466be6df2bd62333486ced86e5b710ec402/merged",
            "UpperDir": "/var/lib/docker/overlay2/7e086fd2bc06747b9a383f0568e32466be6df2bd62333486ced86e5b710ec402/diff",
            "WorkDir": "/var/lib/docker/overlay2/7e086fd2bc06747b9a383f0568e32466be6df2bd62333486ced86e5b710ec402/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:cc967c529ced563b7746b663d98248bc571afdb3c012019d7f54d6c092793b8b",
            "sha256:2c6ac8e5063e35e91ab79dfb7330c6154b82f3a7e4724fb1b4475c0a95dfdd33",
            "sha256:6c01b5a53aac53c66f02ea711295c7586061cbe083b110d54dafbeb6cf7636bf",
            "sha256:e0b3afb09dc386786d49d6443bdfb20bc74d77dcf68e152db7e5bb36b1cca638",
            "sha256:7af2f89c9318dc934bec98609c3b999d0957af3589f94cb6eb4915f12de02326",
            "sha256:deafe65b098d9bb779197a571fbcccbe3effc2b4354911b3846a65b52e4228e5",
            "sha256:2fbcf88776e61039cc93ce9487132d1a2b4dd5a4ad1d248c139a38748c317616",
            "sha256:04cb33cdd73023a52dc4fd55a2a09f0024cfcf8b518206d85a82d1873392d351",
            "sha256:05cab5627e6ac19c34849fcb5acf7dc84820ad7364741bce785287d9c3adff97",
            "sha256:32312d81e2030fc7a193e8b4f5bf46f58f5d9020b083da565ddf7044653014e3",
            "sha256:500c147a2d778474ed6af98eff4e52ce680aac7be099738bf3fc27aadbe0f229",
            "sha256:4f532576e123037746ace20a779a624843ce6e99bb1c5e61028a2978721a2fb5",
            "sha256:c5b9ee129357edc54b7b9ea23dfcf7eb76833f13068ada0fe6303e78cf9241d0"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-12-10T09:23:01.984400491+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
48

docker.io/library/mongo:4.2.1

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