镜像构建历史
# 2025-08-19 00:44:26 0.00B 设置默认要执行的命令
CMD ["redis-server"]
# 2025-08-19 00:44:26 0.00B 声明容器运行时监听的端口
EXPOSE map[6379/tcp:{}]
# 2025-08-19 00:44:26 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["docker-entrypoint.sh"]
# 2025-08-19 00:44:26 4.86KB 复制新文件或目录到容器中
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
# 2025-08-19 00:44:26 0.00B 设置工作目录为/data
WORKDIR /data
# 2025-08-19 00:44:26 0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/data]
# 2025-08-19 00:44:26 0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir /data && chown redis:redis /data # buildkit
# 2025-08-19 00:44:26 61.91MB 执行命令并创建新的镜像层
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 g++ libc6-dev libssl-dev make; arch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; case "$arch" in 'amd64') export BUILD_WITH_MODULES=yes; export INSTALL_RUST_TOOLCHAIN=yes; export DISABLE_WERRORS=yes ;; 'arm64') export BUILD_WITH_MODULES=yes; export INSTALL_RUST_TOOLCHAIN=yes; export DISABLE_WERRORS=yes ;; *) echo >&2 "Modules are NOT supported! unsupported architecture: '$arch'"; export BUILD_WITH_MODULES=no ;; esac; if [ "$BUILD_WITH_MODULES" = "yes" ]; then apt-get install -y --no-install-recommends git cmake python3 python3-pip python3-venv python3-dev unzip rsync clang automake autoconf libtool g++; fi; 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"; case "${arch##*-}" 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' '{}' ';' ; make -C /usr/src/redis distclean; 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; rm -rf /var/cache/debconf/*; redis-cli --version; redis-server --version # buildkit
# 2025-08-19 00:44:26 0.00B 设置环境变量 REDIS_DOWNLOAD_SHA
ENV REDIS_DOWNLOAD_SHA=e2c1cb9dd4180a35b943b85dfc7dcdd42566cdbceca37d0d0b14c21731582d3e
# 2025-08-19 00:44:26 0.00B 设置环境变量 REDIS_DOWNLOAD_URL
ENV REDIS_DOWNLOAD_URL=http://download.redis.io/releases/redis-8.2.1.tar.gz
# 2025-08-19 00:44:26 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
# 2025-08-19 00:44:26 4.30KB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; groupadd -r -g 999 redis; useradd -r -g redis -u 999 redis # buildkit
# 2025-08-11 08:00:00 97.21MB
# debian.sh --arch 'arm64' out/ 'bookworm' '@1754870400'
镜像信息
{
"Id": "sha256:742fe6f4da2f9d27ef93e59754ed04b5e1e24a3cf4b5a6b715939e62baca9e03",
"RepoTags": [
"redis:latest",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/redis:latest-linuxarm64"
],
"RepoDigests": [
"redis@sha256:cc2dfb8f5151da2684b4a09bd04b567f92d07591d91980eb3eca21df07e12760",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/redis@sha256:a49daccb35c45d2333a4a5dee99d9073ffd00d3c9de30abae8ab1f0c6124a578"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-08-18T16:44:26Z",
"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",
"REDIS_DOWNLOAD_URL=http://download.redis.io/releases/redis-8.2.1.tar.gz",
"REDIS_DOWNLOAD_SHA=e2c1cb9dd4180a35b943b85dfc7dcdd42566cdbceca37d0d0b14c21731582d3e"
],
"Cmd": [
"redis-server"
],
"Image": "",
"Volumes": {
"/data": {}
},
"WorkingDir": "/data",
"Entrypoint": [
"docker-entrypoint.sh"
],
"OnBuild": null,
"Labels": null
},
"Architecture": "arm64",
"Variant": "v8",
"Os": "linux",
"Size": 159129068,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/3a18ed4146055d6417cb723dae87d1dc3340755def450da58cde7604fb97e7f7/diff:/var/lib/docker/overlay2/65c55619e400a062a74407c7acccd6ad2e55c325ff24a6490af2406f6dcc17d2/diff:/var/lib/docker/overlay2/71b76a2360352d212a4651b17096105919a74ae05c08cd90e555d5d7d93d38ac/diff:/var/lib/docker/overlay2/598fe52cb39be9f5150dc1e43ce48c0ffaf2ac275e780a6ea6f1d8a54d8dba49/diff:/var/lib/docker/overlay2/2e029e26c4a6bb458de635e10b00e7afc7b04e0748b472af26004d18deb58187/diff:/var/lib/docker/overlay2/8d368a16e1b2d60cd8d37234aea63a34e6677643db57e728b2420eecffe445b8/diff",
"MergedDir": "/var/lib/docker/overlay2/20c9e57c83830aa5baad1a9ec321c8f6f0b9435222a75c743bcd53131b71f59f/merged",
"UpperDir": "/var/lib/docker/overlay2/20c9e57c83830aa5baad1a9ec321c8f6f0b9435222a75c743bcd53131b71f59f/diff",
"WorkDir": "/var/lib/docker/overlay2/20c9e57c83830aa5baad1a9ec321c8f6f0b9435222a75c743bcd53131b71f59f/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:f0f023a634822e4d1dacfa8dfd82bee43b4e781c712de7cf9bcf60f0d2784d6a",
"sha256:937eb75c94219d0b086f47423d18011e43905f96d428ea5bffc47b7ffc573cde",
"sha256:1d0ad182ccff784719b643bb7f5b6c6caf8616b5ccf8231857573c8b708020f6",
"sha256:7a4dd95dc5d7e4a67cf2ec4310b269878b9e0cf607847ca1706a6482a178d4eb",
"sha256:9acdc3feeadc81eafb99028cd54fe489dd736a31f282d64c8cb3d3dd90bca758",
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
"sha256:d0ad92409a6bca27f79905557516616b5690e8e60ac01df8714c2f0d49384495"
]
},
"Metadata": {
"LastTagTime": "2025-08-26T11:35:40.903689341+08:00"
}
}