镜像构建历史
# 2024-06-29 08:54:11 0.00B 设置默认要执行的命令
CMD ["memcached"]
# 2024-06-29 08:54:11 0.00B 声明容器运行时监听的端口
EXPOSE map[11211/tcp:{}]
# 2024-06-29 08:54:11 0.00B 指定运行容器时使用的用户
USER memcache
# 2024-06-29 08:54:11 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["docker-entrypoint.sh"]
# 2024-06-29 08:54:11 34.00B 执行命令并创建新的镜像层
RUN /bin/sh -c ln -s usr/local/bin/docker-entrypoint.sh /entrypoint.sh # backwards compat # buildkit
# 2024-06-29 08:54:11 124.00B 复制新文件或目录到容器中
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
# 2024-06-29 08:54:11 3.83MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends ca-certificates dpkg-dev gcc libc6-dev libevent-dev libio-socket-ssl-perl libsasl2-dev libssl-dev make perl wget ; rm -rf /var/lib/apt/lists/*; wget -O memcached.tar.gz "$MEMCACHED_URL"; echo "$MEMCACHED_SHA1 memcached.tar.gz" | sha1sum -c -; mkdir -p /usr/src/memcached; tar -xzf memcached.tar.gz -C /usr/src/memcached --strip-components=1; rm memcached.tar.gz; cd /usr/src/memcached; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --enable-extstore --enable-sasl --enable-sasl-pwdb --enable-tls ; nproc="$(nproc)"; make -j "$nproc"; sed -i.bak 's/SECLEVEL=2/SECLEVEL=1/g' /etc/ssl/openssl.cnf; make test PARALLEL="$nproc"; mv /etc/ssl/openssl.cnf.bak /etc/ssl/openssl.cnf; make install; cd /; rm -rf /usr/src/memcached; apt-mark auto '.*' > /dev/null; 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; memcached -V # buildkit
# 2024-06-29 08:54:11 0.00B 设置环境变量 MEMCACHED_SHA1
ENV MEMCACHED_SHA1=a9699aed111d86b6e37b3ce5e6ef4e7539582d5f
# 2024-06-29 08:54:11 0.00B 设置环境变量 MEMCACHED_URL
ENV MEMCACHED_URL=https://memcached.org/files/memcached-1.6.29.tar.gz
# 2024-06-29 08:54:11 0.00B 设置环境变量 MEMCACHED_VERSION
ENV MEMCACHED_VERSION=1.6.29
# 2024-06-29 08:54:11 6.48MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends libsasl2-modules ; rm -rf /var/lib/apt/lists/* # buildkit
# 2024-06-29 08:54:11 4.32KB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; groupadd --system --gid 11211 memcache; useradd --system --gid memcache --uid 11211 memcache # buildkit
# 2024-06-29 08:54:11 0.00B
/bin/sh -c #(nop) CMD ["bash"]
# 2024-06-29 08:54:11 97.11MB
/bin/sh -c #(nop) ADD file:06a1877f1e100122a40ed52ce771bfa7e2ab3d28323780f58f1e5b57c1e576f9 in /
镜像信息
{
"Id": "sha256:cc4bc5941413a1bdcac522d43304cb7e2edeba60a0a73c015c0c6db899e690cf",
"RepoTags": [
"memcached:1.6.29",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/memcached:1.6.29-linuxarm64"
],
"RepoDigests": [
"memcached@sha256:56a39bd5c2d5c0a656d0aca25ad5b0d8cd40b7050d2805b58a04194a16d3953b",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/memcached@sha256:434d84f0a7cfca5e82f53cc78786fe7b59dfcf94aa0855f1cf435cdea720b0a2"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2024-06-29T00:54:11Z",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "memcache",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"11211/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"MEMCACHED_VERSION=1.6.29",
"MEMCACHED_URL=https://memcached.org/files/memcached-1.6.29.tar.gz",
"MEMCACHED_SHA1=a9699aed111d86b6e37b3ce5e6ef4e7539582d5f"
],
"Cmd": [
"memcached"
],
"ArgsEscaped": true,
"Image": "",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": [
"docker-entrypoint.sh"
],
"OnBuild": null,
"Labels": null
},
"Architecture": "arm64",
"Os": "linux",
"Size": 107422952,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/446c10c4c68bb067cf4ea60c35afdd4bbe007b78a06b245a36ebb4a559ab4796/diff:/var/lib/docker/overlay2/962b50e99469101b67533106fc70e84f089f56f94ab87c5c6499d30e4b67c362/diff:/var/lib/docker/overlay2/7d8e7a7c024ac90129b894d791f869a7394ce5cbbea9cc6b3bfe6699f16889f1/diff:/var/lib/docker/overlay2/52db0ba1928da1d23853785aa991afd171a4173adb75440fb66c6196925de772/diff:/var/lib/docker/overlay2/47627be8a3708278ab8dbe6e7b607ea8f425fdf9e897eab48e85c9b08d01b861/diff",
"MergedDir": "/var/lib/docker/overlay2/1aedc29047df5689eb50681138bb5175f40dfbe95617447ecd355abfa6272b6e/merged",
"UpperDir": "/var/lib/docker/overlay2/1aedc29047df5689eb50681138bb5175f40dfbe95617447ecd355abfa6272b6e/diff",
"WorkDir": "/var/lib/docker/overlay2/1aedc29047df5689eb50681138bb5175f40dfbe95617447ecd355abfa6272b6e/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:e644ff0c302d7de4c3e03dc718bc4b77ebeb324f7c8f5483b463fa230027b02c",
"sha256:4660dd7240bbe1fd744c956e21ab60a42d5b57dbaa1887b5d397b5d5c586dc60",
"sha256:3a981ba712cf37fef5ea3a87d8a57a0428b873d07e0d8589cf600058d42d1fe1",
"sha256:88f5b106aee1b41bb99450e451039b0e312c534e77ea44a812fc2f8e681bc06d",
"sha256:942a929238a946abc77e6f8651b5a7e25dbe9a143d1c439cbe103adb37b4aadd",
"sha256:b8f933eee27c1ff06efebb72f54f3ff6ace184f25fbdda9e06237b040d5690f1"
]
},
"Metadata": {
"LastTagTime": "2025-03-18T23:02:37.339824665+08:00"
}
}