docker.io/php:7.4-alpine3.16 linux/amd64

docker.io/php:7.4-alpine3.16 - 国内下载镜像源 浏览次数:39
🐳
源镜像 docker.io/php:7.4-alpine3.16
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/php:7.4-alpine3.16
镜像ID sha256:0e3af06bf90e0b2fbdac1510c73669455f2700da6bd2f7b1d7aa3bd29e0427eb
镜像TAG 7.4-alpine3.16
大小 83.48MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD php -a
启动入口 docker-php-entrypoint
工作目录
OS/平台 linux/amd64
浏览量 39 次
贡献者
镜像创建 2022-11-12T09:18:50.159917445Z
同步时间 2024-12-17 19:31
更新时间 2025-01-17 12:49
环境变量
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=42670A7FE4D0441C8E4632349E4FDC074A4EF02D 5A52880781F755608BF815FC910DEB46F53EA312 PHP_VERSION=7.4.33 PHP_URL=https://www.php.net/distributions/php-7.4.33.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-7.4.33.tar.xz.asc PHP_SHA256=924846abf93bc613815c55dd3f5809377813ac62a9ec4eb3778675b82a27b927
镜像安全扫描 查看Trivy扫描报告

系统OS: alpine 3.16.3 扫描引擎: Trivy 扫描时间: 2024-12-17 19:32

低危漏洞:4 中危漏洞:43 高危漏洞:27 严重漏洞:4

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

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/php:7.4-alpine3.16
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/php:7.4-alpine3.16  docker.io/php:7.4-alpine3.16

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/php:7.4-alpine3.16
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/php:7.4-alpine3.16  docker.io/php:7.4-alpine3.16

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2022-11-12 17:18:50  0.00B 
/bin/sh -c #(nop)  CMD ["php" "-a"]
                        
# 2022-11-12 17:18:50  0.00B 
/bin/sh -c #(nop)  ENTRYPOINT ["docker-php-entrypoint"]
                        
# 2022-11-12 17:18:49  51.51KB 
/bin/sh -c docker-php-ext-enable sodium
                        
# 2022-11-12 17:18:48  7.20KB 
/bin/sh -c #(nop) COPY multi:6edd033b037aa2d7697fc3b9f82c2f162146c1920a0c6d25a165dc56783204db in /usr/local/bin/ 
                        
# 2022-11-12 17:18:48  63.84MB 
/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; 	ln -sv /usr/include/gnu-libiconv/*.h /usr/include/; 		export 		CFLAGS="$PHP_CFLAGS" 		CPPFLAGS="$PHP_CPPFLAGS" 		LDFLAGS="$PHP_LDFLAGS" 	; 	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-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" = 's390x-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
                        
# 2022-11-12 17:15:21  587.00B 
/bin/sh -c #(nop) COPY file:ce57c04b70896f77cc11eb2766417d8a1240fcffe5bba92179ec78c458844110 in /usr/local/bin/ 
                        
# 2022-11-12 17:15:21  10.47MB 
/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
                        
# 2022-11-12 17:15:14  0.00B 
/bin/sh -c #(nop)  ENV PHP_SHA256=924846abf93bc613815c55dd3f5809377813ac62a9ec4eb3778675b82a27b927
                        
# 2022-11-12 17:15:14  0.00B 
/bin/sh -c #(nop)  ENV PHP_URL=https://www.php.net/distributions/php-7.4.33.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-7.4.33.tar.xz.asc
                        
# 2022-11-12 17:15:14  0.00B 
/bin/sh -c #(nop)  ENV PHP_VERSION=7.4.33
                        
# 2022-11-12 17:15:14  0.00B 
/bin/sh -c #(nop)  ENV GPG_KEYS=42670A7FE4D0441C8E4632349E4FDC074A4EF02D 5A52880781F755608BF815FC910DEB46F53EA312
                        
# 2022-11-12 16:36:58  0.00B 
/bin/sh -c #(nop)  ENV PHP_LDFLAGS=-Wl,-O1 -pie
                        
# 2022-11-12 16:36:58  0.00B 
/bin/sh -c #(nop)  ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
                        
# 2022-11-12 16:36:58  0.00B 
/bin/sh -c #(nop)  ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
                        
# 2022-11-12 16:36:58  0.00B 
/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 777 /var/www/html
                        
# 2022-11-12 16:36:57  0.00B 
/bin/sh -c #(nop)  ENV PHP_INI_DIR=/usr/local/etc/php
                        
# 2022-11-12 16:36:57  4.68KB 
/bin/sh -c set -eux; 	adduser -u 82 -D -S -G www-data www-data
                        
# 2022-11-12 16:36:56  3.57MB 
/bin/sh -c apk add --no-cache 		ca-certificates 		curl 		tar 		xz 		openssl
                        
# 2022-11-12 16:36:55  0.00B 
/bin/sh -c #(nop)  ENV PHPIZE_DEPS=autoconf 		dpkg-dev dpkg 		file 		g++ 		gcc 		libc-dev 		make 		pkgconf 		re2c
                        
# 2022-11-12 12:19:23  0.00B 
/bin/sh -c #(nop)  CMD ["/bin/sh"]
                        
# 2022-11-12 12:19:23  5.54MB 
/bin/sh -c #(nop) ADD file:ceeb6e8632fafc657116cbf3afbd522185a16963230b57881073dad22eb0e1a3 in / 
                        
                    

镜像信息

{
    "Id": "sha256:0e3af06bf90e0b2fbdac1510c73669455f2700da6bd2f7b1d7aa3bd29e0427eb",
    "RepoTags": [
        "php:7.4-alpine",
        "php:7.4-alpine3.16",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/php:7.4-alpine",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/php:7.4-alpine3.16"
    ],
    "RepoDigests": [
        "php@sha256:0d67d81f60f4a400f1b68e3a41e910c98c5e08f49e515f6855561a0f24d37852",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/php@sha256:1e1b3bb4ee1bcb039f559adb9a3fae391c87205ba239b619cdc239b78b7f2557"
    ],
    "Parent": "",
    "Comment": "",
    "Created": "2022-11-12T09:18:50.159917445Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "20.10.12",
    "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=42670A7FE4D0441C8E4632349E4FDC074A4EF02D 5A52880781F755608BF815FC910DEB46F53EA312",
            "PHP_VERSION=7.4.33",
            "PHP_URL=https://www.php.net/distributions/php-7.4.33.tar.xz",
            "PHP_ASC_URL=https://www.php.net/distributions/php-7.4.33.tar.xz.asc",
            "PHP_SHA256=924846abf93bc613815c55dd3f5809377813ac62a9ec4eb3778675b82a27b927"
        ],
        "Cmd": [
            "php",
            "-a"
        ],
        "Image": "sha256:a1069930fc73a053965330c0708802f8aba9f1fc646838374591874b8af71867",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": [
            "docker-php-entrypoint"
        ],
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 83484288,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/3a37d24d69741b33b86f43d2afbb327dd8e9967a8ee0adcd7522b52b779a676b/diff:/var/lib/docker/overlay2/b075003e5034f80b9a25b333e16e05aee5c04a84a73d8635ca932bc9ddf1395a/diff:/var/lib/docker/overlay2/39c6b4a414f344120063bd339e3c9c72827bca23f29e7d896ff794f9c5d69913/diff:/var/lib/docker/overlay2/5c13f8a99991f13eaf5e6ed8b7635de367d9eff4f2983bcb6717eaf5fd0a46fb/diff:/var/lib/docker/overlay2/4db050e20ca5bec5287833fa81a02c65d94c0e21b361180f7f78909ebe5eecff/diff:/var/lib/docker/overlay2/edc989f6a763d04f406fa2dde800ff9d9d423cfc156cfcd32dbacdbf3022ab3c/diff:/var/lib/docker/overlay2/e2c19020381253ec78f462e365af0cda69be9b3639289efebb6c8f12456f1fbb/diff:/var/lib/docker/overlay2/d2fd7854ac950a81e7654a48f81ce7b104a560bb4eaa6a6098fc05c720e69844/diff",
            "MergedDir": "/var/lib/docker/overlay2/16f4fdc17109bc06f1b135ca94ff9a13721725b8012e0bda07824c64c6af6f09/merged",
            "UpperDir": "/var/lib/docker/overlay2/16f4fdc17109bc06f1b135ca94ff9a13721725b8012e0bda07824c64c6af6f09/diff",
            "WorkDir": "/var/lib/docker/overlay2/16f4fdc17109bc06f1b135ca94ff9a13721725b8012e0bda07824c64c6af6f09/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:e5e13b0c77cbb769548077189c3da2f0a764ceca06af49d8d558e759f5c232bd",
            "sha256:5a30d9e50c50ef8801e40f5ccdc4f14f90064477fe8899fe07a392522b3db228",
            "sha256:93b39fc78a348e37b5ae6549ad0f72405e8520027355b8e6b98c7b950a947ccd",
            "sha256:9e0d4f458c69f8fe7e35c08fb5857cd36743684bf8b97a818eaf6d7a27bbff40",
            "sha256:0ec5e7e1b3c1d99716a7e2267b7f0c20ab66c4aa4e911bb36361dbb15c365c9c",
            "sha256:4d3b3659e3fdd07d61113c63ff367c9b29f00e1a335aeb9e68b4cc9ba115bf6b",
            "sha256:3467d2e41661eb5be3b97fa9dcc1fc731acb2cc3e6db3c987fecd728c5feaa2d",
            "sha256:d4a8cf9787faae159e6413e2cb066b91ab986fab4d0f2876b38a60acaf7e2381",
            "sha256:69dccaf3bf1752cc255fa443df047b2ed4ac38eaec5dc61294342ceab54e324a"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-12-17T19:31:21.169046724+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
243

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
187

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
203

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
82

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
79

docker.io/php:8.3-zts-alpine

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

docker.io/php:8.2.16-apache-bullseye

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

docker.io/php:7.4-alpine3.15

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

docker.io/php:7.4-alpine

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

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