docker.io/php:8.3-zts-alpine linux/amd64

docker.io/php:8.3-zts-alpine - 国内下载镜像源 浏览次数:74
🐳
源镜像 docker.io/php:8.3-zts-alpine
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/php:8.3-zts-alpine
镜像ID sha256:27c25bacef86588e31de57f16353660df5eab6c80316d25c1807b5df3ffb6238
镜像TAG 8.3-zts-alpine
大小 128.08MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD php -a
启动入口 docker-php-entrypoint
工作目录 /
OS/平台 linux/amd64
浏览量 74 次
贡献者 xi******6@126.com
镜像创建 2024-11-21T06:31:33Z
同步时间 2024-12-03 12:05
更新时间 2025-01-16 17:10
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c PHP_INI_DIR=/usr/local/etc/php PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 PHP_LDFLAGS=-Wl,-O1 -pie GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA PHP_VERSION=8.3.14 PHP_URL=https://www.php.net/distributions/php-8.3.14.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.14.tar.xz.asc PHP_SHA256=58b4cb9019bf70c0cbcdb814c7df79b9065059d14cf7dbf48d971f8e56ae9be7
镜像安全扫描 查看Trivy扫描报告

系统OS: alpine 3.20.3 扫描引擎: Trivy 扫描时间: 2024-12-03 12:07

低危漏洞:0 中危漏洞:0 高危漏洞:0 严重漏洞:0

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

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/php:8.3-zts-alpine
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/php:8.3-zts-alpine  docker.io/php:8.3-zts-alpine

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/php:8.3-zts-alpine
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/php:8.3-zts-alpine  docker.io/php:8.3-zts-alpine

Shell快速替换命令

sed -i 's#php:8.3-zts-alpine#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/php:8.3-zts-alpine#' deployment.yaml

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2024-11-21 14:31:33  0.00B 设置默认要执行的命令
CMD ["php" "-a"]
                        
# 2024-11-21 14:31:33  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["docker-php-entrypoint"]
                        
# 2024-11-21 14:31:33  53.71KB 执行命令并创建新的镜像层
RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
                        
# 2024-11-21 14:31:33  7.20KB 复制新文件或目录到容器中
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
                        
# 2024-11-21 14:31:33  95.17MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	apk add --no-cache --virtual .build-deps 		$PHPIZE_DEPS 		argon2-dev 		coreutils 		curl-dev 		gnu-libiconv-dev 		libsodium-dev 		libxml2-dev 		linux-headers 		oniguruma-dev 		openssl-dev 		readline-dev 		sqlite-dev 	; 		rm -vf /usr/include/iconv.h; 		export 		CFLAGS="$PHP_CFLAGS" 		CPPFLAGS="$PHP_CPPFLAGS" 		LDFLAGS="$PHP_LDFLAGS" 		PHP_BUILD_PROVIDER='https://github.com/docker-library/php' 		PHP_UNAME='Linux - Docker' 	; 	docker-php-source extract; 	cd /usr/src/php; 	gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; 	./configure 		--build="$gnuArch" 		--with-config-file-path="$PHP_INI_DIR" 		--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" 				--enable-option-checking=fatal 				--with-mhash 				--with-pic 				--enable-mbstring 		--enable-mysqlnd 		--with-password-argon2 		--with-sodium=shared 		--with-pdo-sqlite=/usr 		--with-sqlite3=/usr 				--with-curl 		--with-iconv=/usr 		--with-openssl 		--with-readline 		--with-zlib 				--enable-phpdbg 		--enable-phpdbg-readline 				--with-pear 						--enable-embed 				--enable-zts 		--disable-zend-signals 	; 	make -j "$(nproc)"; 	find -type f -name '*.a' -delete; 	make install; 	find 		/usr/local 		-type f 		-perm '/0111' 		-exec sh -euxc ' 			strip --strip-all "$@" || : 		' -- '{}' + 	; 	make clean; 		cp -v php.ini-* "$PHP_INI_DIR/"; 		cd /; 	docker-php-source delete; 		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-cache $runDeps; 		apk del --no-network .build-deps; 		pecl update-channels; 	rm -rf /tmp/pear ~/.pearrc; 		php --version # buildkit
                        
# 2024-11-21 14:31:33  587.00B 复制新文件或目录到容器中
COPY docker-php-source /usr/local/bin/ # buildkit
                        
# 2024-11-21 14:31:33  12.57MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 		apk add --no-cache --virtual .fetch-deps gnupg; 		mkdir -p /usr/src; 	cd /usr/src; 		curl -fsSL -o php.tar.xz "$PHP_URL"; 		if [ -n "$PHP_SHA256" ]; then 		echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; 	fi; 		if [ -n "$PHP_ASC_URL" ]; then 		curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; 		export GNUPGHOME="$(mktemp -d)"; 		for key in $GPG_KEYS; do 			gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; 		done; 		gpg --batch --verify php.tar.xz.asc php.tar.xz; 		gpgconf --kill all; 		rm -rf "$GNUPGHOME"; 	fi; 		apk del --no-network .fetch-deps # buildkit
                        
# 2024-11-21 14:31:33  0.00B 设置环境变量 PHP_SHA256
ENV PHP_SHA256=58b4cb9019bf70c0cbcdb814c7df79b9065059d14cf7dbf48d971f8e56ae9be7
                        
# 2024-11-21 14:31:33  0.00B 设置环境变量 PHP_URL PHP_ASC_URL
ENV PHP_URL=https://www.php.net/distributions/php-8.3.14.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.14.tar.xz.asc
                        
# 2024-11-21 14:31:33  0.00B 设置环境变量 PHP_VERSION
ENV PHP_VERSION=8.3.14
                        
# 2024-11-21 14:31:33  0.00B 设置环境变量 GPG_KEYS
ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
                        
# 2024-11-21 14:31:33  0.00B 设置环境变量 PHP_LDFLAGS
ENV PHP_LDFLAGS=-Wl,-O1 -pie
                        
# 2024-11-21 14:31:33  0.00B 设置环境变量 PHP_CPPFLAGS -D_FILE_OFFSET_BITS
ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
                        
# 2024-11-21 14:31:33  0.00B 设置环境变量 PHP_CFLAGS -D_FILE_OFFSET_BITS
ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
                        
# 2024-11-21 14:31:33  0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	mkdir -p "$PHP_INI_DIR/conf.d"; 	[ ! -d /var/www/html ]; 	mkdir -p /var/www/html; 	chown www-data:www-data /var/www/html; 	chmod 1777 /var/www/html # buildkit
                        
# 2024-11-21 14:31:33  0.00B 设置环境变量 PHP_INI_DIR
ENV PHP_INI_DIR=/usr/local/etc/php
                        
# 2024-11-21 14:31:33  3.04KB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	adduser -u 82 -D -S -G www-data www-data # buildkit
                        
# 2024-11-21 14:31:33  12.48MB 执行命令并创建新的镜像层
RUN /bin/sh -c apk add --no-cache 		ca-certificates 		curl 		openssl 		tar 		xz # buildkit
                        
# 2024-11-21 14:31:33  0.00B 设置环境变量 PHPIZE_DEPS
ENV PHPIZE_DEPS=autoconf 		dpkg-dev dpkg 		file 		g++ 		gcc 		libc-dev 		make 		pkgconf 		re2c
                        
# 2024-09-06 20:05:36  0.00B 设置默认要执行的命令
CMD ["/bin/sh"]
                        
# 2024-09-06 20:05:36  7.80MB 复制文件或目录到容器中
ADD alpine-minirootfs-3.20.3-x86_64.tar.gz / # buildkit
                        
                    

镜像信息

{
    "Id": "sha256:27c25bacef86588e31de57f16353660df5eab6c80316d25c1807b5df3ffb6238",
    "RepoTags": [
        "php:8.3-zts-alpine",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/php:8.3-zts-alpine"
    ],
    "RepoDigests": [
        "php@sha256:736eb726a3cf32e73b11e82614774c46da6ec6b4504d8cfc5a90025b1d868395",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/php@sha256:2d56e8c8acc5ec683c9d4de458c3f1b05419d53361a1016a9952d90a1de5f1c2"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-11-21T06:31:33Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "PHPIZE_DEPS=autoconf \t\tdpkg-dev dpkg \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkgconf \t\tre2c",
            "PHP_INI_DIR=/usr/local/etc/php",
            "PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64",
            "PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64",
            "PHP_LDFLAGS=-Wl,-O1 -pie",
            "GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA",
            "PHP_VERSION=8.3.14",
            "PHP_URL=https://www.php.net/distributions/php-8.3.14.tar.xz",
            "PHP_ASC_URL=https://www.php.net/distributions/php-8.3.14.tar.xz.asc",
            "PHP_SHA256=58b4cb9019bf70c0cbcdb814c7df79b9065059d14cf7dbf48d971f8e56ae9be7"
        ],
        "Cmd": [
            "php",
            "-a"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": null,
        "WorkingDir": "/",
        "Entrypoint": [
            "docker-php-entrypoint"
        ],
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 128077188,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/8f0e1600517426083074560583deb2f114659693263f61b5c62127ccf89577c0/diff:/var/lib/docker/overlay2/077395bdf239a177858ad2faaa7f15e91192e4fbb1d33adef3e61757e86c86a0/diff:/var/lib/docker/overlay2/8a8c1e551cf6c34f78d083dfd93f3cccb0ba82eccec532cc075f5c460337af4a/diff:/var/lib/docker/overlay2/24acfe385729019ecc7728ee6ca2ba087fafd05c11d3f8971facc03fb8bcea55/diff:/var/lib/docker/overlay2/c244a12d19243cecb151f36918db1b3eb074823fdd6fae082cd64efa58a47f9d/diff:/var/lib/docker/overlay2/0ce51ec2181d17de5810446b16d4cd1774dcfc642f54e159dc118d75c21981a7/diff:/var/lib/docker/overlay2/ed084e8b69725185a499530215524e55214bbde18fbda0156c6dbceafd316b52/diff:/var/lib/docker/overlay2/23c5724f3a35122d45237c48d0eec74bfb90f129834f1ecb674937c0af9f9db3/diff",
            "MergedDir": "/var/lib/docker/overlay2/67a9a8624c3205c28e4dd40863ce9f4a4e83211ec5f6e3d90348f438a3857490/merged",
            "UpperDir": "/var/lib/docker/overlay2/67a9a8624c3205c28e4dd40863ce9f4a4e83211ec5f6e3d90348f438a3857490/diff",
            "WorkDir": "/var/lib/docker/overlay2/67a9a8624c3205c28e4dd40863ce9f4a4e83211ec5f6e3d90348f438a3857490/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:75654b8eeebd3beae97271a102f57cdeb794cc91e442648544963a7e951e9558",
            "sha256:3cdafeeb006c0b2b5a28a052881795a4eaf386ec4b72110bbd2a438d43dc7461",
            "sha256:9f1a675f5491c349f7e6c6b8828eed2ceab4fda23646f5143cdbe9cbdeeb305d",
            "sha256:6ff365b199403503b1dda8c720faaeb39947e8710e4a2bc438d72ae2f0a1e9e2",
            "sha256:f2e982e32da056e1344564fc9721c93c3a1e412e5834e96e445c58a7f6f961d5",
            "sha256:22b8156cb56019300fe69c96524d3dc11716ad702d653a3aff0b66b51a43fefa",
            "sha256:355d59a7795e55c3f2ab9cb08ba6bca5704b378057fc7e37ab2f60c4a73da806",
            "sha256:f58c66c3fc23a5378b353c68cac6d27c4270aedad89c3a21e7dd86692c1aa405",
            "sha256:c0abca2c0d54c6604c196f99f0c7cc7b28d0930020df76d87fcd5565b488f95e"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-12-03T12:05:34.025702191+08:00"
    }
}

更多版本

docker.io/php:7.4.33-zts-alpine3.16

linux/amd64 docker.io64.46MB2024-06-19 14:29
184

docker.io/phpmyadmin:fpm

linux/amd64 docker.io552.51MB2024-07-12 21:30
242

docker.io/phpmyadmin:5.2.1

linux/amd64 docker.io561.83MB2024-07-15 10:30
205

docker.io/phpdockerio/php:7.4-fpm

linux/amd64 docker.io176.11MB2024-07-28 11:46
423

docker.io/php:7.4.0-fpm-alpine

linux/amd64 docker.io83.46MB2024-09-19 02:16
186

docker.io/php:7.3.29-fpm

linux/amd64 docker.io452.87MB2024-10-11 16:58
138

docker.io/php:8.3-apache

linux/amd64 docker.io507.04MB2024-10-16 14:44
202

docker.io/php:7.1.4-apache

linux/amd64 docker.io389.62MB2024-10-25 16:22
112

docker.io/php:7.1.33-buster

linux/amd64 docker.io389.34MB2024-10-28 13:52
81

docker.io/phpipam/phpipam-cron:latest

linux/amd64 docker.io183.82MB2024-11-01 11:36
96

docker.io/phpipam/phpipam-www:latest

linux/amd64 docker.io183.82MB2024-11-01 11:37
131

docker.io/php:8.2-apache

linux/amd64 docker.io501.78MB2024-11-11 12:41
82

docker.io/php:8.3-cli

linux/amd64 docker.io535.21MB2024-12-03 11:52
78

docker.io/php:8.3-zts-alpine

linux/amd64 docker.io128.08MB2024-12-03 12:05
73

docker.io/php:8.2.16-apache-bullseye

linux/amd64 docker.io459.78MB2024-12-05 19:59
61

docker.io/php:7.4-alpine3.15

linux/amd64 docker.io87.22MB2024-12-17 19:25
44

docker.io/php:7.4-alpine

linux/amd64 docker.io83.48MB2024-12-17 19:27
78

docker.io/php:7.4-alpine3.16

linux/amd64 docker.io83.48MB2024-12-17 19:31
38

docker.io/php:8.1-apache

linux/arm64 docker.io509.77MB2024-12-20 13:47
65

docker.io/php:8.1-alpine

linux/amd64 docker.io98.50MB2025-01-15 23:36
25

docker.io/php:8.2-alpine

linux/amd64 docker.io98.89MB2025-01-15 23:46
24