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

docker.io/php:8.1-alpine - 国内下载镜像源 浏览次数:24
🐳
源镜像 docker.io/php:8.1-alpine
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/php:8.1-alpine
镜像ID sha256:7fb4562f25bd9a61b6263307fd913e62aaa67ebc12c4c5efad3852a029fedd5e
镜像TAG 8.1-alpine
大小 98.50MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD php -a
启动入口 docker-php-entrypoint
工作目录 /
OS/平台 linux/amd64
浏览量 24 次
贡献者
镜像创建 2024-12-11T09:15:55Z
同步时间 2025-01-15 23:36
更新时间 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=528995BFEDFBA7191D46839EF9BA0ADA31CBD89E 39B641343D8C104B2B146DC3F9C39DC0B9698544 F1F692238FBC1666E5A5CCD4199F9DFEF6FFBAFD PHP_VERSION=8.1.31 PHP_URL=https://www.php.net/distributions/php-8.1.31.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.1.31.tar.xz.asc PHP_SHA256=c4f244d46ba51c72f7d13d4f66ce6a9e9a8d6b669c51be35e01765ba58e7afca

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

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2024-12-11 17:15:55  0.00B 设置默认要执行的命令
CMD ["php" "-a"]
                        
# 2024-12-11 17:15:55  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["docker-php-entrypoint"]
                        
# 2024-12-11 17:15:55  54.51KB 执行命令并创建新的镜像层
RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
                        
# 2024-12-11 17:15:55  7.20KB 复制新文件或目录到容器中
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
                        
# 2024-12-11 17:15:55  71.59MB 执行命令并创建新的镜像层
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 		patch 		patchutils 		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; 	curl -fL 'https://github.com/php/php-src/commit/577b8ae4226368e66fee7a9b5c58f9e2428372fc.patch?full_index=1' -o 11678.patch; 	echo '6edc20c3bb3e7cc13515abce7f2fffa8ebea6cf7469abfbc78fcdc120350b239 *11678.patch' | sha256sum -c -; 	patch -p1 < 11678.patch; 	rm 11678.patch; 	curl -fL 'https://github.com/php/php-src/commit/67259e451d5d58b4842776c5696a66d74e157609.patch?full_index=1' -o 14834.patch; 	echo 'ed10a1b254091ad676ed204e55628ecbd6c8962004d6185a1821cedecd526c0f *14834.patch' | sha256sum -c -; 	filterdiff -x '*/NEWS' 14834.patch | patch -p1; 	rm 14834.patch; 	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-ftp 		--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-11 17:15:55  587.00B 复制新文件或目录到容器中
COPY docker-php-source /usr/local/bin/ # buildkit
                        
# 2024-12-11 17:15:55  11.96MB 执行命令并创建新的镜像层
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-11 17:15:55  0.00B 设置环境变量 PHP_SHA256
ENV PHP_SHA256=c4f244d46ba51c72f7d13d4f66ce6a9e9a8d6b669c51be35e01765ba58e7afca
                        
# 2024-12-11 17:15:55  0.00B 设置环境变量 PHP_URL PHP_ASC_URL
ENV PHP_URL=https://www.php.net/distributions/php-8.1.31.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.1.31.tar.xz.asc
                        
# 2024-12-11 17:15:55  0.00B 设置环境变量 PHP_VERSION
ENV PHP_VERSION=8.1.31
                        
# 2024-12-11 17:15:55  0.00B 设置环境变量 GPG_KEYS
ENV GPG_KEYS=528995BFEDFBA7191D46839EF9BA0ADA31CBD89E 39B641343D8C104B2B146DC3F9C39DC0B9698544 F1F692238FBC1666E5A5CCD4199F9DFEF6FFBAFD
                        
# 2024-12-11 17:15:55  0.00B 设置环境变量 PHP_LDFLAGS
ENV PHP_LDFLAGS=-Wl,-O1 -pie
                        
# 2024-12-11 17:15:55  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-11 17:15:55  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-11 17:15:55  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-11 17:15:55  0.00B 设置环境变量 PHP_INI_DIR
ENV PHP_INI_DIR=/usr/local/etc/php
                        
# 2024-12-11 17:15:55  3.04KB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	adduser -u 82 -D -S -G www-data www-data # buildkit
                        
# 2024-12-11 17:15:55  7.05MB 执行命令并创建新的镜像层
RUN /bin/sh -c apk add --no-cache 		ca-certificates 		curl 		openssl 		tar 		xz # buildkit
                        
# 2024-12-11 17:15:55  0.00B 设置环境变量 PHPIZE_DEPS
ENV PHPIZE_DEPS=autoconf 		dpkg-dev dpkg 		file 		g++ 		gcc 		libc-dev 		make 		pkgconf 		re2c
                        
# 2024-12-11 17:15:55  0.00B 设置默认要执行的命令
CMD ["/bin/sh"]
                        
# 2024-12-11 17:15:55  7.83MB 复制文件或目录到容器中
ADD alpine-minirootfs-3.21.2-x86_64.tar.gz / # buildkit
                        
                    

镜像信息

{
    "Id": "sha256:7fb4562f25bd9a61b6263307fd913e62aaa67ebc12c4c5efad3852a029fedd5e",
    "RepoTags": [
        "php:8.1-alpine",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/php:8.1-alpine"
    ],
    "RepoDigests": [
        "php@sha256:d1e2db2813f240544b309f3f2f6ffea8b5cbd30b37976e5da7a192cf16fd2326",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/php@sha256:2962de87638cd23f99b07f6507c83a0eb2d265f4b140f1934999e6d1ccbd888e"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-12-11T09:15:55Z",
    "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=528995BFEDFBA7191D46839EF9BA0ADA31CBD89E 39B641343D8C104B2B146DC3F9C39DC0B9698544 F1F692238FBC1666E5A5CCD4199F9DFEF6FFBAFD",
            "PHP_VERSION=8.1.31",
            "PHP_URL=https://www.php.net/distributions/php-8.1.31.tar.xz",
            "PHP_ASC_URL=https://www.php.net/distributions/php-8.1.31.tar.xz.asc",
            "PHP_SHA256=c4f244d46ba51c72f7d13d4f66ce6a9e9a8d6b669c51be35e01765ba58e7afca"
        ],
        "Cmd": [
            "php",
            "-a"
        ],
        "Image": "",
        "Volumes": null,
        "WorkingDir": "/",
        "Entrypoint": [
            "docker-php-entrypoint"
        ],
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 98504397,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/53754bae110c6b4f4c1236d28810810231a3ed3b7412d0c75a1b8f313b732d45/diff:/var/lib/docker/overlay2/273074b953123937fd26ab7e6bbc4dd2de9783cf88ad12251772c68bfd5a6e79/diff:/var/lib/docker/overlay2/e954663f13280d61bd08da0d8ca5e6d62255456481208a6d58157e8e2a79daaf/diff:/var/lib/docker/overlay2/631c066cb216a7aaf8f0146271a751e29eb35719fb7ff4fffa5b05b9dcdb6941/diff:/var/lib/docker/overlay2/8ddea4bfcee67fc64908227003660ae329a8b724407f78cf45531846d616cbf5/diff:/var/lib/docker/overlay2/72d6781dad288909c7fab3a12f5be06a406c1b50b588fe7cbdb23a17d146b1b5/diff:/var/lib/docker/overlay2/ece65bc96822c1bdcd8c66ec4b9c7535b9678ea0d62e36e73f7852e1ffdd78ce/diff:/var/lib/docker/overlay2/d20d579acee6b92a841ecc27f4d08dddd63e6a78b9aab3e87eac393e91dd0045/diff",
            "MergedDir": "/var/lib/docker/overlay2/9b5de1c52d8c33f3d73ad516ae31f5526f6c25db4df343a39bb5f84c32638839/merged",
            "UpperDir": "/var/lib/docker/overlay2/9b5de1c52d8c33f3d73ad516ae31f5526f6c25db4df343a39bb5f84c32638839/diff",
            "WorkDir": "/var/lib/docker/overlay2/9b5de1c52d8c33f3d73ad516ae31f5526f6c25db4df343a39bb5f84c32638839/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:a0904247e36a7726c03c71ee48f3e64462021c88dafeb13f37fdaf613b27f11c",
            "sha256:faf6944d9d3270e3228feb20beaf155ea7a1a49254976ce9af0e66131a1b22a1",
            "sha256:0344545f11f8f1d687d93b45d58efd8e88e5ab2f8b2ae61c45074b3ea858942d",
            "sha256:7d1c6f4becc809b0f0820d48f6427f637dd5fcdf801828b5f7a86268a63e4164",
            "sha256:e89c76528bda6ade3a5df1b4b0f06ec8a7ff2f965786c98a7c4cff6f2f38a9d1",
            "sha256:500944bfccb632e031d09d381d957f9b2f98fe7b92d9fa1144e327233f7c990a",
            "sha256:2dbadab586e8d4d9e197b6531045d008003b57f923e774b7e0914707c6c44a01",
            "sha256:924d956f427f6e880f4db4e612a475b4be2661662178d378070e3d0ec34d3677",
            "sha256:6c9777e4fe198314af7fb5d8f4109f3164239dfd16de5ab02f2f0d0f5bf9e06e"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-01-15T23:36:47.080914672+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
23

docker.io/php:8.2-alpine

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