docker.io/php:8.2-alpine linux/amd64

docker.io/php:8.2-alpine - 国内下载镜像源 浏览次数:23
🐳
源镜像 docker.io/php:8.2-alpine
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/php:8.2-alpine
镜像ID sha256:ea3c2a0e0e95fcedd9474dfcf1ef74dd6a7d836ca44561b446202e59660c8757
镜像TAG 8.2-alpine
大小 98.89MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD php -a
启动入口 docker-php-entrypoint
工作目录 /
OS/平台 linux/amd64
浏览量 23 次
贡献者
镜像创建 2024-12-19T16:49:54Z
同步时间 2025-01-15 23:46
更新时间 2025-01-18 09:37
环境变量
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=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC PHP_VERSION=8.2.27 PHP_URL=https://www.php.net/distributions/php-8.2.27.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.2.27.tar.xz.asc PHP_SHA256=3eec91294d8c09b3df80b39ec36d574ed9b05de4c8afcb25fa215d48f9ecbc6b

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

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2024-12-20 00:49:54  0.00B 设置默认要执行的命令
CMD ["php" "-a"]
                        
# 2024-12-20 00:49:54  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["docker-php-entrypoint"]
                        
# 2024-12-20 00:49:54  54.51KB 执行命令并创建新的镜像层
RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
                        
# 2024-12-20 00:49:54  7.20KB 复制新文件或目录到容器中
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
                        
# 2024-12-20 00:49:54  71.74MB 执行命令并创建新的镜像层
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 				$(test "$gnuArch" = 'riscv64-linux-musl' && echo '--without-pcre-jit') 	; 	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-12-20 00:49:54  587.00B 复制新文件或目录到容器中
COPY docker-php-source /usr/local/bin/ # buildkit
                        
# 2024-12-20 00:49:54  12.20MB 执行命令并创建新的镜像层
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-12-20 00:49:54  0.00B 设置环境变量 PHP_SHA256
ENV PHP_SHA256=3eec91294d8c09b3df80b39ec36d574ed9b05de4c8afcb25fa215d48f9ecbc6b
                        
# 2024-12-20 00:49:54  0.00B 设置环境变量 PHP_URL PHP_ASC_URL
ENV PHP_URL=https://www.php.net/distributions/php-8.2.27.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.2.27.tar.xz.asc
                        
# 2024-12-20 00:49:54  0.00B 设置环境变量 PHP_VERSION
ENV PHP_VERSION=8.2.27
                        
# 2024-12-20 00:49:54  0.00B 设置环境变量 GPG_KEYS
ENV GPG_KEYS=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
                        
# 2024-12-20 00:49:54  0.00B 设置环境变量 PHP_LDFLAGS
ENV PHP_LDFLAGS=-Wl,-O1 -pie
                        
# 2024-12-20 00:49:54  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-12-20 00:49:54  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-12-20 00:49:54  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-12-20 00:49:54  0.00B 设置环境变量 PHP_INI_DIR
ENV PHP_INI_DIR=/usr/local/etc/php
                        
# 2024-12-20 00:49:54  3.04KB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	adduser -u 82 -D -S -G www-data www-data # buildkit
                        
# 2024-12-20 00:49:54  7.05MB 执行命令并创建新的镜像层
RUN /bin/sh -c apk add --no-cache 		ca-certificates 		curl 		openssl 		tar 		xz # buildkit
                        
# 2024-12-20 00:49:54  0.00B 设置环境变量 PHPIZE_DEPS
ENV PHPIZE_DEPS=autoconf 		dpkg-dev dpkg 		file 		g++ 		gcc 		libc-dev 		make 		pkgconf 		re2c
                        
# 2024-12-20 00:49:54  0.00B 设置默认要执行的命令
CMD ["/bin/sh"]
                        
# 2024-12-20 00:49:54  7.83MB 复制文件或目录到容器中
ADD alpine-minirootfs-3.21.2-x86_64.tar.gz / # buildkit
                        
                    

镜像信息

{
    "Id": "sha256:ea3c2a0e0e95fcedd9474dfcf1ef74dd6a7d836ca44561b446202e59660c8757",
    "RepoTags": [
        "php:8.2-alpine",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/php:8.2-alpine"
    ],
    "RepoDigests": [
        "php@sha256:f008f738761737f08576f12e69331df2639a29f8d788eedaba1592d7fadf111a",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/php@sha256:190c0ed10aba0252d051026863a24b0a23d9429cbeaedd3f1f0a33c54f712a1c"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-12-19T16:49:54Z",
    "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=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC",
            "PHP_VERSION=8.2.27",
            "PHP_URL=https://www.php.net/distributions/php-8.2.27.tar.xz",
            "PHP_ASC_URL=https://www.php.net/distributions/php-8.2.27.tar.xz.asc",
            "PHP_SHA256=3eec91294d8c09b3df80b39ec36d574ed9b05de4c8afcb25fa215d48f9ecbc6b"
        ],
        "Cmd": [
            "php",
            "-a"
        ],
        "Image": "",
        "Volumes": null,
        "WorkingDir": "/",
        "Entrypoint": [
            "docker-php-entrypoint"
        ],
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 98893524,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/6e589ae035812c4bfb8cc8985e01825d0884b4dc482efcb74a425601e44e452f/diff:/var/lib/docker/overlay2/ca41c38e9bb1eeda8b15ee547f0ef84ede8299114e36a30a06e14d4e05794b31/diff:/var/lib/docker/overlay2/9247fd32f45e4fbc97e51d1a5b41cc5484fe257d27d84a9234c11a34afc8eab6/diff:/var/lib/docker/overlay2/55bb66fa2cc935fc36021280e76cfcbdf508729d27c41c92500c73505927ecc7/diff:/var/lib/docker/overlay2/210e358b114585faff747acf478ff11226f17f97463fdcaf0a5a50870585d55b/diff:/var/lib/docker/overlay2/5fd628c89badb2c5d0d35799c7512343090db78555d563b1cae70e08abc3cb1a/diff:/var/lib/docker/overlay2/fb35216889abbb65a646d3fcb3885e89cdd67f746cc639ed33bcd2cf67d7325e/diff:/var/lib/docker/overlay2/d20d579acee6b92a841ecc27f4d08dddd63e6a78b9aab3e87eac393e91dd0045/diff",
            "MergedDir": "/var/lib/docker/overlay2/0584bba893aab5ac251b1447f1b162868ce22cce813122050d4e553c8e24ae09/merged",
            "UpperDir": "/var/lib/docker/overlay2/0584bba893aab5ac251b1447f1b162868ce22cce813122050d4e553c8e24ae09/diff",
            "WorkDir": "/var/lib/docker/overlay2/0584bba893aab5ac251b1447f1b162868ce22cce813122050d4e553c8e24ae09/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:a0904247e36a7726c03c71ee48f3e64462021c88dafeb13f37fdaf613b27f11c",
            "sha256:0988f69a4cc766a5003bfef0eb881228a992065ad1c6c3b8d3bfe1c5922713bf",
            "sha256:13120acb8303b271510bead4fe8e2227689ddadd570c21664e6e724e8afa9cb3",
            "sha256:2823b1955522dba0bbab2f55527478ca1bd6ece99154054a51c715056fe0ee85",
            "sha256:583b23d53df5e3090fd8f0a0f23e0b7780393efd2084d5a80d784be458aef202",
            "sha256:5abfcc32cfb21f2997409b38aa92b09fd68bc8e2f5227d45c5385e66a9acaec7",
            "sha256:e84fb8e97e75f7acd222f5d8034ae43aa6f0352a277a036c37c800fad4d67022",
            "sha256:505c04eac2d235fb279dbfb5e5ff90ea22608103fcb249c2eb12ff0fe41571fd",
            "sha256:fb8df4cc1633c077fcd463295c876b1d670c7da095a0cdff6dc32bad5537741e"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-01-15T23:46:15.960827889+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
111

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
95

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
81

docker.io/php:8.3-cli

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

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
64

docker.io/php:8.1-alpine

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

docker.io/php:8.2-alpine

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