docker.io/library/redis:latest linux/amd64

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

温馨提示:此镜像为latest tag镜像,本站无法保证此版本为最新镜像

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

源镜像 docker.io/library/redis:latest
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/redis:latest
镜像ID sha256:590b81f2fea1af9798db4580a6299dafba020c2f5dc7d8d734663e7fa5299ca0
镜像TAG latest
大小 116.96MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD redis-server
启动入口 docker-entrypoint.sh
工作目录 /data
OS/平台 linux/amd64
浏览量 349 次
贡献者 46******8@qq.com
镜像创建 2024-07-29T07:59:06Z
同步时间 2024-09-24 16:50
更新时间 2025-01-17 22:00
开放端口
6379/tcp
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin GOSU_VERSION=1.17 REDIS_VERSION=7.4.0 REDIS_DOWNLOAD_URL=http://download.redis.io/releases/redis-7.4.0.tar.gz REDIS_DOWNLOAD_SHA=57b47c2c6682636d697dbf5d66d8d495b4e653afc9cd32b7adf9da3e433b8aaf
镜像安全扫描 查看Trivy扫描报告

系统OS: debian 12.7 扫描引擎: Trivy 扫描时间: 2024-10-27 04:05

低危漏洞:62 中危漏洞:35 高危漏洞:32 严重漏洞:4

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

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2024-07-29 15:59:06  0.00B 设置默认要执行的命令
CMD ["redis-server"]
                        
# 2024-07-29 15:59:06  0.00B 声明容器运行时监听的端口
EXPOSE map[6379/tcp:{}]
                        
# 2024-07-29 15:59:06  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["docker-entrypoint.sh"]
                        
# 2024-07-29 15:59:06  661.00B 复制新文件或目录到容器中
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
                        
# 2024-07-29 15:59:06  0.00B 设置工作目录为/data
WORKDIR /data
                        
# 2024-07-29 15:59:06  0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/data]
                        
# 2024-07-29 15:59:06  0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir /data && chown redis:redis /data # buildkit
                        
# 2024-07-29 15:59:06  38.05MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 		savedAptMark="$(apt-mark showmanual)"; 	apt-get update; 	apt-get install -y --no-install-recommends 		ca-certificates 		wget 				dpkg-dev 		gcc 		libc6-dev 		libssl-dev 		make 	; 	rm -rf /var/lib/apt/lists/*; 		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; 		apt-mark auto '.*' > /dev/null; 	[ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; 	find /usr/local -type f -executable -exec ldd '{}' ';' 		| awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' 		| sort -u 		| xargs -r dpkg-query --search 		| cut -d: -f1 		| sort -u 		| xargs -r apt-mark manual 	; 	apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; 		redis-cli --version; 	redis-server --version # buildkit
                        
# 2024-07-29 15:59:06  0.00B 设置环境变量 REDIS_DOWNLOAD_SHA
ENV REDIS_DOWNLOAD_SHA=57b47c2c6682636d697dbf5d66d8d495b4e653afc9cd32b7adf9da3e433b8aaf
                        
# 2024-07-29 15:59:06  0.00B 设置环境变量 REDIS_DOWNLOAD_URL
ENV REDIS_DOWNLOAD_URL=http://download.redis.io/releases/redis-7.4.0.tar.gz
                        
# 2024-07-29 15:59:06  0.00B 设置环境变量 REDIS_VERSION
ENV REDIS_VERSION=7.4.0
                        
# 2024-07-29 15:59:06  4.12MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	savedAptMark="$(apt-mark showmanual)"; 	apt-get update; 	apt-get install -y --no-install-recommends ca-certificates gnupg wget; 	rm -rf /var/lib/apt/lists/*; 	arch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; 	case "$arch" in 		'amd64') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-amd64'; sha256='bbc4136d03ab138b1ad66fa4fc051bafc6cc7ffae632b069a53657279a450de3' ;; 		'arm64') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-arm64'; sha256='c3805a85d17f4454c23d7059bcb97e1ec1af272b90126e79ed002342de08389b' ;; 		'armel') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-armel'; sha256='f9969910fa141140438c998cfa02f603bf213b11afd466dcde8fa940e700945d' ;; 		'i386') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-i386'; sha256='087dbb8fe479537e64f9c86fa49ff3b41dee1cbd28739a19aaef83dc8186b1ca' ;; 		'mips64el') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-mips64el'; sha256='87140029d792595e660be0015341dfa1c02d1181459ae40df9f093e471d75b70' ;; 		'ppc64el') 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' ;; 		'armhf') 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; 	apt-mark auto '.*' > /dev/null; 	[ -z "$savedAptMark" ] || 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-07-29 15:59:06  0.00B 设置环境变量 GOSU_VERSION
ENV GOSU_VERSION=1.17
                        
# 2024-07-29 15:59:06  5.08KB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	apt-get update; 	apt-get install -y --no-install-recommends 		tzdata 	; 	rm -rf /var/lib/apt/lists/* # buildkit
                        
# 2024-07-29 15:59:06  4.30KB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	groupadd -r -g 999 redis; 	useradd -r -g redis -u 999 redis # buildkit
                        
# 2024-07-29 15:59:06  0.00B 
/bin/sh -c #(nop)  CMD ["bash"]
                        
# 2024-07-29 15:59:06  74.78MB 
/bin/sh -c #(nop) ADD file:d13afefcc2b0b02b598a3ac2598fe2187db41de1e17820e5b600a955b1429d59 in / 
                        
                    

镜像信息

{
    "Id": "sha256:590b81f2fea1af9798db4580a6299dafba020c2f5dc7d8d734663e7fa5299ca0",
    "RepoTags": [
        "redis:latest",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/redis:latest"
    ],
    "RepoDigests": [
        "redis@sha256:eadf354977d428e347d93046bb1a5569d701e8deb68f090215534a99dbcb23b9",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/redis@sha256:9e0dedfd09654001f77a0d1dbe981717a746ef4d253f5d119c50be28e100337f"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-07-29T07:59:06Z",
    "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.4.0",
            "REDIS_DOWNLOAD_URL=http://download.redis.io/releases/redis-7.4.0.tar.gz",
            "REDIS_DOWNLOAD_SHA=57b47c2c6682636d697dbf5d66d8d495b4e653afc9cd32b7adf9da3e433b8aaf"
        ],
        "Cmd": [
            "redis-server"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": {
            "/data": {}
        },
        "WorkingDir": "/data",
        "Entrypoint": [
            "docker-entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 116956143,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/85fbc44c7821c28a3fcbb0a6813dea48dd661686ccdd9ee3861808b10bd974ae/diff:/var/lib/docker/overlay2/5a70dd14525b09dbdf40a0a7c89ae3117e23eda7cb383939223be8a9624ce205/diff:/var/lib/docker/overlay2/29fcfc74dfdd238e25c07dea822609a7523b71e1d01cfe79d40a8a3917e7e464/diff:/var/lib/docker/overlay2/9dd02420a53910ce747906c6d3bb81fb4bb1a03733f43ce33168e028da1283c9/diff:/var/lib/docker/overlay2/9b05f87a4f43a9bf6cb2baa01d5f2a89aea7e5f4dba16f810ed43627ca820ad2/diff:/var/lib/docker/overlay2/7b9d454308b95e1302d16a171566e66dbda862b82f4896842fecae8b36889a7d/diff:/var/lib/docker/overlay2/35d783ba1e40af320a2c83c510409780d32c332703501e9a591fa471ce729790/diff",
            "MergedDir": "/var/lib/docker/overlay2/a9ad364f776fccdaa0af98b637db6f339ae429a7e865f45814efb73d6aa4a1dd/merged",
            "UpperDir": "/var/lib/docker/overlay2/a9ad364f776fccdaa0af98b637db6f339ae429a7e865f45814efb73d6aa4a1dd/diff",
            "WorkDir": "/var/lib/docker/overlay2/a9ad364f776fccdaa0af98b637db6f339ae429a7e865f45814efb73d6aa4a1dd/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:8e2ab394fabf557b00041a8f080b10b4e91c7027b7c174f095332c7ebb6501cb",
            "sha256:9a978e3d8066b448323af0ea471da443c1e9da9dd8d0663d380b6af6a5ef14ed",
            "sha256:a64e92ee12394b08486442cb272116d6b0a4f363748434316a2e9ed2fdd379c0",
            "sha256:40710ab1222c055362a531507662df6177a4a2c97095b5ead8389c1e5b797615",
            "sha256:15ef09f0323042ab4d842cd2d5d53d1cdd99414ee787d08f7d7064bf69d2d146",
            "sha256:e4dbf0bd9d9df4561e608086d426c8edca8dd2fd9b83b2bc76b4fbc88066fc1d",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
            "sha256:950a085c0a1cd3e27102081e4a7bfb4bd0a624325b1cd3caf71f0d5f5eced6b6"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-09-24T16:49:55.651108043+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
348

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
31

docker.io/library/redis:7.0.15-alpine

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