docker.io/library/redis:7.2.4-alpine linux/amd64

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

该Docker镜像名为docker.io/library/redis,该镜像是基于Redis开源实时数据库软件的官方镜像,提供了Redis的基本功能,如字符串存储、哈希表、列表、集合、有序集合等。

源镜像 docker.io/library/redis:7.2.4-alpine
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/redis:7.2.4-alpine
镜像ID sha256:a1811fcf7480814388689537dc16867225145ba49a4d02e0c4cbd206a3d92077
镜像TAG 7.2.4-alpine
大小 46.07MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD redis-server
启动入口 docker-entrypoint.sh
工作目录 /data
OS/平台 linux/amd64
浏览量 60 次
贡献者
镜像创建 2024-05-17T21:55:46Z
同步时间 2024-12-13 17:31
更新时间 2025-01-16 09:25
开放端口
6379/tcp
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin GOSU_VERSION=1.17 REDIS_VERSION=7.2.4 REDIS_DOWNLOAD_URL=http://download.redis.io/releases/redis-7.2.4.tar.gz REDIS_DOWNLOAD_SHA=8d104c26a154b29fd67d6568b4f375212212ad41e0c2caa3d66480e78dbd3b59
镜像安全扫描 查看Trivy扫描报告

系统OS: alpine 3.19.1 扫描引擎: Trivy 扫描时间: 2024-12-13 17:32

低危漏洞:3 中危漏洞:40 高危漏洞:31 严重漏洞:3

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

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/redis:7.2.4-alpine
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/redis:7.2.4-alpine  docker.io/library/redis:7.2.4-alpine

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/redis:7.2.4-alpine
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/redis:7.2.4-alpine  docker.io/library/redis:7.2.4-alpine

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2024-05-18 05:55:46  0.00B 设置默认要执行的命令
CMD ["redis-server"]
                        
# 2024-05-18 05:55:46  0.00B 声明容器运行时监听的端口
EXPOSE map[6379/tcp:{}]
                        
# 2024-05-18 05:55:46  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["docker-entrypoint.sh"]
                        
# 2024-05-18 05:55:46  661.00B 复制新文件或目录到容器中
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
                        
# 2024-05-18 05:55:46  0.00B 设置工作目录为/data
WORKDIR /data
                        
# 2024-05-18 05:55:46  0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/data]
                        
# 2024-05-18 05:55:46  0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir /data && chown redis:redis /data # buildkit
                        
# 2024-05-18 05:55:46  35.10MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 		apk add --no-cache --virtual .build-deps 		coreutils 		dpkg-dev dpkg 		gcc 		linux-headers 		make 		musl-dev 		openssl-dev 		wget 	; 		wget -O redis.tar.gz "$REDIS_DOWNLOAD_URL"; 	echo "$REDIS_DOWNLOAD_SHA *redis.tar.gz" | sha256sum -c -; 	mkdir -p /usr/src/redis; 	tar -xzf redis.tar.gz -C /usr/src/redis --strip-components=1; 	rm redis.tar.gz; 		grep -E '^ *createBoolConfig[(]"protected-mode",.*, *1 *,.*[)],$' /usr/src/redis/src/config.c; 	sed -ri 's!^( *createBoolConfig[(]"protected-mode",.*, *)1( *,.*[)],)$!\10\2!' /usr/src/redis/src/config.c; 	grep -E '^ *createBoolConfig[(]"protected-mode",.*, *0 *,.*[)],$' /usr/src/redis/src/config.c; 		gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; 	extraJemallocConfigureFlags="--build=$gnuArch"; 	dpkgArch="$(dpkg --print-architecture)"; 	case "${dpkgArch##*-}" in 		amd64 | i386 | x32) extraJemallocConfigureFlags="$extraJemallocConfigureFlags --with-lg-page=12" ;; 		*) extraJemallocConfigureFlags="$extraJemallocConfigureFlags --with-lg-page=16" ;; 	esac; 	extraJemallocConfigureFlags="$extraJemallocConfigureFlags --with-lg-hugepage=21"; 	grep -F 'cd jemalloc && ./configure ' /usr/src/redis/deps/Makefile; 	sed -ri 's!cd jemalloc && ./configure !&'"$extraJemallocConfigureFlags"' !' /usr/src/redis/deps/Makefile; 	grep -F "cd jemalloc && ./configure $extraJemallocConfigureFlags " /usr/src/redis/deps/Makefile; 		export BUILD_TLS=yes; 	make -C /usr/src/redis -j "$(nproc)" all; 	make -C /usr/src/redis install; 		serverMd5="$(md5sum /usr/local/bin/redis-server | cut -d' ' -f1)"; export serverMd5; 	find /usr/local/bin/redis* -maxdepth 0 		-type f -not -name redis-server 		-exec sh -eux -c ' 			md5="$(md5sum "$1" | cut -d" " -f1)"; 			test "$md5" = "$serverMd5"; 		' -- '{}' ';' 		-exec ln -svfT 'redis-server' '{}' ';' 	; 		rm -r /usr/src/redis; 		runDeps="$( 		scanelf --needed --nobanner --format '%n#p' --recursive /usr/local 			| tr ',' '\n' 			| sort -u 			| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' 	)"; 	apk add --no-network --virtual .redis-rundeps $runDeps; 	apk del --no-network .build-deps; 		redis-cli --version; 	redis-server --version; 		echo '{"spdxVersion":"SPDX-2.3","SPDXID":"SPDXRef-DOCUMENT","name":"redis-server-sbom","packages":[{"name":"redis-server","versionInfo":"7.2.4","SPDXID":"SPDXRef-Package--redis-server","externalRefs":[{"referenceCategory":"PACKAGE-MANAGER","referenceType":"purl","referenceLocator":"pkg:generic/redis-server@7.2.4?os_name=alpine&os_version=3.19"}],"licenseDeclared":"BSD-3-Clause"}]}' > /usr/local/redis.spdx.json # buildkit
                        
# 2024-05-18 05:55:46  0.00B 设置环境变量 REDIS_DOWNLOAD_SHA
ENV REDIS_DOWNLOAD_SHA=8d104c26a154b29fd67d6568b4f375212212ad41e0c2caa3d66480e78dbd3b59
                        
# 2024-05-18 05:55:46  0.00B 设置环境变量 REDIS_DOWNLOAD_URL
ENV REDIS_DOWNLOAD_URL=http://download.redis.io/releases/redis-7.2.4.tar.gz
                        
# 2024-05-18 05:55:46  0.00B 设置环境变量 REDIS_VERSION
ENV REDIS_VERSION=7.2.4
                        
# 2024-05-18 05:55:46  2.44MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	apk add --no-cache --virtual .gosu-fetch gnupg; 	arch="$(apk --print-arch)"; 	case "$arch" in 		'x86_64') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-amd64'; sha256='bbc4136d03ab138b1ad66fa4fc051bafc6cc7ffae632b069a53657279a450de3' ;; 		'aarch64') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-arm64'; sha256='c3805a85d17f4454c23d7059bcb97e1ec1af272b90126e79ed002342de08389b' ;; 		'armhf') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-armhf'; sha256='e5866286277ff2a2159fb9196fea13e0a59d3f1091ea46ddb985160b94b6841b' ;; 		'x86') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-i386'; sha256='087dbb8fe479537e64f9c86fa49ff3b41dee1cbd28739a19aaef83dc8186b1ca' ;; 		'ppc64le') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-ppc64el'; sha256='1891acdcfa70046818ab6ed3c52b9d42fa10fbb7b340eb429c8c7849691dbd76' ;; 		'riscv64') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-riscv64'; sha256='38a6444b57adce135c42d5a3689f616fc7803ddc7a07ff6f946f2ebc67a26ba6' ;; 		's390x') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-s390x'; sha256='69873bab588192f760547ca1f75b27cfcf106e9f7403fee6fd0600bc914979d0' ;; 		'armv7') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-armhf'; sha256='e5866286277ff2a2159fb9196fea13e0a59d3f1091ea46ddb985160b94b6841b' ;; 		*) echo >&2 "error: unsupported gosu architecture: '$arch'"; exit 1 ;; 	esac; 	wget -O /usr/local/bin/gosu.asc "$url.asc"; 	wget -O /usr/local/bin/gosu "$url"; 	echo "$sha256 */usr/local/bin/gosu" | sha256sum -c -; 	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; 	apk del --no-network .gosu-fetch; 	chmod +x /usr/local/bin/gosu; 	gosu --version; 	gosu nobody true # buildkit
                        
# 2024-05-18 05:55:46  0.00B 设置环境变量 GOSU_VERSION
ENV GOSU_VERSION=1.17
                        
# 2024-05-18 05:55:46  1.15MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	apk add --no-cache 		tzdata 	; # buildkit
                        
# 2024-05-18 05:55:46  4.70KB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	addgroup -S -g 1000 redis; 	adduser -S -G redis -u 999 redis # buildkit
                        
# 2024-01-27 08:30:48  0.00B 
/bin/sh -c #(nop)  CMD ["/bin/sh"]
                        
# 2024-01-27 08:30:48  7.38MB 
/bin/sh -c #(nop) ADD file:37a76ec18f9887751cd8473744917d08b7431fc4085097bb6a09d81b41775473 in / 
                        
                    

镜像信息

{
    "Id": "sha256:a1811fcf7480814388689537dc16867225145ba49a4d02e0c4cbd206a3d92077",
    "RepoTags": [
        "redis:7.2.4-alpine",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/redis:7.2.4-alpine"
    ],
    "RepoDigests": [
        "redis@sha256:c8bb255c3559b3e458766db810aa7b3c7af1235b204cfdb304e79ff388fe1a5a",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/redis@sha256:924923523306f085c28158d3c15e0895e8b83b55f4b137a86ce2ec3b87a9451d"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-05-17T21:55:46Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "ExposedPorts": {
            "6379/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",
            "REDIS_VERSION=7.2.4",
            "REDIS_DOWNLOAD_URL=http://download.redis.io/releases/redis-7.2.4.tar.gz",
            "REDIS_DOWNLOAD_SHA=8d104c26a154b29fd67d6568b4f375212212ad41e0c2caa3d66480e78dbd3b59"
        ],
        "Cmd": [
            "redis-server"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": {
            "/data": {}
        },
        "WorkingDir": "/data",
        "Entrypoint": [
            "docker-entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 46067550,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/d7ce75c6cd68daa319fa7e3817b1a46753eeb670a07508d76bf6a66e5eb5c236/diff:/var/lib/docker/overlay2/51e91070b6c4abdfb308dfba6d7b7c74a1cfdb8b7fb9d1358b6a4ef4fd7d786b/diff:/var/lib/docker/overlay2/590db26801f263d223db2fba8d73e2903607adae2b0a4c06bcce73a14c012959/diff:/var/lib/docker/overlay2/f420f4a99dc7c09cdec7031a40ad6dd44c2fb827e70c3b2674ccebf6649119be/diff:/var/lib/docker/overlay2/4dedc9ef5c1452efe09eae1adf1225aa7f437055af5ac0c0b06e23c1a6038024/diff:/var/lib/docker/overlay2/7753950dfefb9bcc7acf428a25f9e426c38403e4cdaa6fa361207cf9dfd71183/diff:/var/lib/docker/overlay2/05020cdd716af9042a848dfa1a82562fa9510169a4d19fd27c55bee01abe28d6/diff",
            "MergedDir": "/var/lib/docker/overlay2/66c0d3292e913197b388d302c81c101ec7cc6628b26685e489a5411bd51de0af/merged",
            "UpperDir": "/var/lib/docker/overlay2/66c0d3292e913197b388d302c81c101ec7cc6628b26685e489a5411bd51de0af/diff",
            "WorkDir": "/var/lib/docker/overlay2/66c0d3292e913197b388d302c81c101ec7cc6628b26685e489a5411bd51de0af/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:d4fc045c9e3a848011de66f34b81f052d4f2c15a17bb196d637e526349601820",
            "sha256:c646b2bde974c4b579f1c4ca9ee800ea09062c0e6501e8e19088c3969960ac51",
            "sha256:ad3a8c5538b3ff2f927d3c973c1ef57d016f8249d3187f966675aae863591bd9",
            "sha256:7787254ddf5308bff6d4f2c24e255e20bca2bf6c4d3aefc8217a3002a8168221",
            "sha256:ac436087b18d32dca28f0f2a26588d102aacc3f1bcfda99c2a20294088d34172",
            "sha256:39ec303e1c7648bac1a9b7750f249a60e410b2299e5009fe78de413a041b69f8",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
            "sha256:3a2bad588b20786d83e062f1b10d2583bb161d04a6855ae59d61fa62533ffe15"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-12-13T17:31:21.176311896+08:00"
    }
}

更多版本

docker.io/library/redis:7.0.12

linux/amd64 docker.io129.93MB2024-03-22 14:35
1191

docker.io/library/redis:7.0.13

linux/amd64 docker.io130.02MB2024-03-25 17:37
359

docker.io/library/redis:7.0.14

linux/amd64 docker.io129.97MB2024-03-25 18:44
2185

docker.io/library/redis:5.0.8

linux/arm64 docker.io92.82MB2024-07-31 14:18
370

docker.io/library/redis:7.2.4

linux/arm64 docker.io139.16MB2024-08-08 13:46
329

docker.io/library/redis:latest

linux/amd64 docker.io116.96MB2024-09-24 16:50
349

docker.io/library/redis:7.4

linux/amd64 docker.io116.96MB2024-09-25 11:02
197

docker.io/library/redis:6.2.6-alpine

linux/amd64 docker.io32.37MB2024-09-25 15:03
198

docker.io/library/redis:3.2.12

linux/arm64 docker.io71.18MB2024-09-29 18:19
147

docker.io/library/redis:6.2-alpine

linux/amd64 docker.io30.05MB2024-10-07 16:46
143

docker.io/library/redis:5.0.8

linux/amd64 docker.io98.32MB2024-10-30 15:38
147

docker.io/library/redis:7.2.4-alpine

linux/amd64 docker.io46.07MB2024-12-13 17:31
59

docker.io/library/redis:7.2.6

linux/amd64 docker.io116.52MB2024-12-31 10:32
49

docker.io/library/redis:7.0.12

linux/arm64 docker.io149.39MB2025-01-07 17:06
39

docker.io/library/redis:6.2.12-alpine3.17

linux/amd64 docker.io27.11MB2025-01-08 10:41
32

docker.io/library/redis:7.0.15-alpine

linux/amd64 docker.io32.92MB2025-01-17 17:30
13