镜像构建历史
# 2024-08-01 18:16:42 0.00B 添加元数据标签
LABEL com.centurylinklabs.watchtower.enable=false
# 2024-08-01 18:16:42 0.00B 指定检查容器健康状态的命令
HEALTHCHECK &{["CMD-SHELL" "redis-cli -a $REDIS_HOST_PASSWORD PING || exit 1"] "0s" "0s" "0s" "0s" '\x00'}
# 2024-08-01 18:16:42 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/start.sh"]
# 2024-08-01 18:16:42 0.00B 指定运行容器时使用的用户
USER redis
# 2024-08-01 18:16:42 2.84MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -ex; apk upgrade --no-cache -a; apk add --no-cache openssl bash; echo "root:$(openssl rand -base64 12)" | chpasswd; rm -f /usr/local/bin/gosu; # buildkit
# 2024-08-01 18:16:40 527.00B 复制新文件或目录到容器中
COPY --chmod=775 start.sh /start.sh # buildkit
# 2024-05-23 07:17:59 0.00B 设置默认要执行的命令
CMD ["redis-server"]
# 2024-05-23 07:17:59 0.00B 声明容器运行时监听的端口
EXPOSE map[6379/tcp:{}]
# 2024-05-23 07:17:59 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["docker-entrypoint.sh"]
# 2024-05-23 07:17:59 661.00B 复制新文件或目录到容器中
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
# 2024-05-23 07:17:59 0.00B 设置工作目录为/data
WORKDIR /data
# 2024-05-23 07:17:59 0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/data]
# 2024-05-23 07:17:59 0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir /data && chown redis:redis /data # buildkit
# 2024-05-23 07:17:59 30.00MB 执行命令并创建新的镜像层
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 # buildkit
# 2024-05-23 07:17:59 0.00B 设置环境变量 REDIS_DOWNLOAD_SHA
ENV REDIS_DOWNLOAD_SHA=5981179706f8391f03be91d951acafaeda91af7fac56beffb2701963103e423d
# 2024-05-23 07:17:59 0.00B 设置环境变量 REDIS_DOWNLOAD_URL
ENV REDIS_DOWNLOAD_URL=http://download.redis.io/releases/redis-7.2.5.tar.gz
# 2024-05-23 07:17:59 0.00B 设置环境变量 REDIS_VERSION
ENV REDIS_VERSION=7.2.5
# 2024-05-23 07:17:59 2.41MB 执行命令并创建新的镜像层
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-23 07:17:59 0.00B 设置环境变量 GOSU_VERSION
ENV GOSU_VERSION=1.17
# 2024-05-23 07:17:59 514.78KB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; apk add --no-cache tzdata ; # buildkit
# 2024-05-23 07:17:59 3.06KB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; addgroup -S -g 1000 redis; adduser -S -G redis -u 999 redis # buildkit
# 2024-05-23 07:17:59 0.00B
/bin/sh -c #(nop) CMD ["/bin/sh"]
# 2024-05-23 07:17:59 7.80MB
/bin/sh -c #(nop) ADD file:99093095d62d0421541d882f9ceeddb2981fe701ec0aa9d2c08480712d5fed21 in /
镜像信息
{
"Id": "sha256:966a6340817b4b3c06d91fb67fce3222ed9ce10deade20f2d3b101b25ee545ee",
"RepoTags": [
"nextcloud/aio-redis:latest",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nextcloud/aio-redis:latest"
],
"RepoDigests": [
"nextcloud/aio-redis@sha256:5c17a1adbf4c7de73fc223141213e7854e15a0d6fbe39dfa78138ee3098b1725",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nextcloud/aio-redis@sha256:4332d6a87b4a14a0f519e41a0f508aaef4f8275a6ef21987eea1f223ac2d94db"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2024-08-01T10:16:42.013142573Z",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "redis",
"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.5",
"REDIS_DOWNLOAD_URL=http://download.redis.io/releases/redis-7.2.5.tar.gz",
"REDIS_DOWNLOAD_SHA=5981179706f8391f03be91d951acafaeda91af7fac56beffb2701963103e423d"
],
"Cmd": null,
"Healthcheck": {
"Test": [
"CMD-SHELL",
"redis-cli -a $REDIS_HOST_PASSWORD PING || exit 1"
]
},
"ArgsEscaped": true,
"Image": "",
"Volumes": {
"/data": {}
},
"WorkingDir": "/data",
"Entrypoint": [
"/start.sh"
],
"OnBuild": null,
"Labels": {
"com.centurylinklabs.watchtower.enable": "false"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 43567523,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/245b200077fa01483574a08da7730ee25931a32022fe66dbf635f6bfdd6263fa/diff:/var/lib/docker/overlay2/98f70a404160bd0e914c27705db836f062ce2faf7ca63815a2654903047c4ba4/diff:/var/lib/docker/overlay2/26df34aeac01883be0603e4c54bc68ed2e2cd38cbca5a4797cdecb1d51bc1ac1/diff:/var/lib/docker/overlay2/a0ecbba12bb3924f00d94dd785e66d5ca3efa81346ebd7f6432faaec923e74ec/diff:/var/lib/docker/overlay2/fcb7e9356645f20450eebc534dd884055173673656a8897d8b07ecb57e9f37e4/diff:/var/lib/docker/overlay2/8a34897ac2c072562752acd26096c40531ee8d02a915b1276a9afb117f726e4e/diff:/var/lib/docker/overlay2/ebe83a63e5e7aaaa656d73f299496d5fba9d6ddc15e4c8e7279332ff6bd947a7/diff:/var/lib/docker/overlay2/5588697954cfeed68db3866b6c0a3a58119f8cde9793173b0cf9eb233bb458ce/diff:/var/lib/docker/overlay2/b432477cd1cfc4da8de6bb2978a146d43084f40cc2835da168b5343dbae9540a/diff",
"MergedDir": "/var/lib/docker/overlay2/7f0f0f34a41aeb236cb3d9281c453cbf399b2a072e46a116cac6692d67696093/merged",
"UpperDir": "/var/lib/docker/overlay2/7f0f0f34a41aeb236cb3d9281c453cbf399b2a072e46a116cac6692d67696093/diff",
"WorkDir": "/var/lib/docker/overlay2/7f0f0f34a41aeb236cb3d9281c453cbf399b2a072e46a116cac6692d67696093/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:78561cef0761903dd2f7d09856150a6d4fb48967a8f113f3e33d79effbf59a07",
"sha256:dbe2b71ccac921e2d11be0de0fe46b47b75b5492393eb27e2f8a5ed39da9891e",
"sha256:fad8559855d327c7ea73ee8966fb6d1d0ba0ff3a342e3096ef677599480e8f12",
"sha256:b391739716cb2b815be71c7146fac9b920bcbc94fe0a1d45075466ec10bc5ee3",
"sha256:97a654b2feb651da1ea799d06adaa8e02cfefcfec39925bedb924e543b8a7e18",
"sha256:c283aaee8b3b795e165f992fc819751369e82444e788e3b10b31b126004ad325",
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
"sha256:287fcdf326c2d3ef4fd8b1490f553d7ea515c17bb56b5817df5bf1d8b1fbbc64",
"sha256:5294da4ec82580b3ef8352e0b99966cf775d4be584a17cf0f326e6db8089f32c",
"sha256:ad9b4f74db698800e2a1797d3c069ac35b24f77e7647576905f7fd4fa5e9b3de"
]
},
"Metadata": {
"LastTagTime": "2024-08-28T14:24:17.507972922+08:00"
}
}