docker.io/library/php:7.4-apache linux/amd64

docker.io/library/php:7.4-apache - 国内下载镜像源 浏览次数:288 安全受验证的发布者-Docker
这是镜像描述信息:

PHP是用于Web开发的一种脚本语言,旨在使网络开发变得容易快速。它最初由Rasmus Lerdorf于1995年创建,后来由Andi Gutmans、Sascha Schumann和Zeev Suraski等人继续发展。目前,PHP 7.x已成为最流行的Web服务器语言之一。

源镜像 docker.io/library/php:7.4-apache
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/php:7.4-apache
镜像ID sha256:20a3732f422b7b28dcf99e8597f093a8c135efca62ff0dc02a2d92d916369413
镜像TAG 7.4-apache
大小 452.59MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD apache2-foreground
启动入口 docker-php-entrypoint
工作目录 /var/www/html
OS/平台 linux/amd64
浏览量 288 次
贡献者 wa*******o@fjdynamics.com
镜像创建 2022-11-15T06:04:04.720772423Z
同步时间 2024-10-22 20:36
更新时间 2025-01-16 21:28
开放端口
80/tcp
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c PHP_INI_DIR=/usr/local/etc/php APACHE_CONFDIR=/etc/apache2 APACHE_ENVVARS=/etc/apache2/envvars 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: debian 11.5 扫描引擎: Trivy 扫描时间: 2024-10-27 16:42

低危漏洞:523 中危漏洞:1806 高危漏洞:497 严重漏洞:38

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

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2022-11-15 14:04:04  0.00B 
/bin/sh -c #(nop)  CMD ["apache2-foreground"]
                        
# 2022-11-15 14:04:04  0.00B 
/bin/sh -c #(nop)  EXPOSE 80
                        
# 2022-11-15 14:04:04  0.00B 
/bin/sh -c #(nop) WORKDIR /var/www/html
                        
# 2022-11-15 14:04:04  1.35KB 
/bin/sh -c #(nop) COPY file:e3123fcb6566efa979f945bfac1c94c854a559d7b82723e42118882a8ac4de66 in /usr/local/bin/ 
                        
# 2022-11-15 14:04:04  0.00B 
/bin/sh -c #(nop)  STOPSIGNAL SIGWINCH
                        
# 2022-11-15 14:04:04  0.00B 
/bin/sh -c #(nop)  ENTRYPOINT ["docker-php-entrypoint"]
                        
# 2022-11-15 14:04:04  17.00B 
/bin/sh -c docker-php-ext-enable sodium
                        
# 2022-11-15 14:04:03  7.21KB 
/bin/sh -c #(nop) COPY multi:e11221d43af7136e4dbad5a74e659bcfa753214a9e615c3daf357f1633d9d3d1 in /usr/local/bin/ 
                        
# 2022-11-15 14:04:03  43.61MB 
/bin/sh -c set -eux; 		savedAptMark="$(apt-mark showmanual)"; 	apt-get update; 	apt-get install -y --no-install-recommends 		apache2-dev 		libargon2-dev 		libcurl4-openssl-dev 		libonig-dev 		libreadline-dev 		libsodium-dev 		libsqlite3-dev 		libssl-dev 		libxml2-dev 		zlib1g-dev 	; 		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)"; 	debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; 	if [ ! -d /usr/include/curl ]; then 		ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; 	fi; 	./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 		--with-openssl 		--with-readline 		--with-zlib 				--disable-phpdbg 				--with-pear 				$(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') 		--with-libdir="lib/$debMultiarch" 				--disable-cgi 				--with-apxs2 	; 	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; 		apt-mark auto '.*' > /dev/null; 	[ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; 	find /usr/local -type f -executable -exec ldd '{}' ';' 		| awk '/=>/ { print $(NF-1) }' 		| 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; 	rm -rf /var/lib/apt/lists/*; 		pecl update-channels; 	rm -rf /tmp/pear ~/.pearrc; 		php --version
                        
# 2022-11-15 14:02:13  587.00B 
/bin/sh -c #(nop) COPY file:ce57c04b70896f77cc11eb2766417d8a1240fcffe5bba92179ec78c458844110 in /usr/local/bin/ 
                        
# 2022-11-15 14:02:12  11.72MB 
/bin/sh -c set -eux; 		savedAptMark="$(apt-mark showmanual)"; 	apt-get update; 	apt-get install -y --no-install-recommends gnupg dirmngr; 	rm -rf /var/lib/apt/lists/*; 		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; 		apt-mark auto '.*' > /dev/null; 	apt-mark manual $savedAptMark > /dev/null; 	apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
                        
# 2022-11-15 14:02:01  0.00B 
/bin/sh -c #(nop)  ENV PHP_SHA256=924846abf93bc613815c55dd3f5809377813ac62a9ec4eb3778675b82a27b927
                        
# 2022-11-15 14:02:00  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-15 14:02:00  0.00B 
/bin/sh -c #(nop)  ENV PHP_VERSION=7.4.33
                        
# 2022-11-15 14:02:00  0.00B 
/bin/sh -c #(nop)  ENV GPG_KEYS=42670A7FE4D0441C8E4632349E4FDC074A4EF02D 5A52880781F755608BF815FC910DEB46F53EA312
                        
# 2022-11-15 12:17:03  0.00B 
/bin/sh -c #(nop)  ENV PHP_LDFLAGS=-Wl,-O1 -pie
                        
# 2022-11-15 12:17:03  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-15 12:17:03  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-15 12:17:03  237.00B 
/bin/sh -c { 		echo '<FilesMatch \.php$>'; 		echo '\tSetHandler application/x-httpd-php'; 		echo '</FilesMatch>'; 		echo; 		echo 'DirectoryIndex disabled'; 		echo 'DirectoryIndex index.php index.html'; 		echo; 		echo '<Directory /var/www/>'; 		echo '\tOptions -Indexes'; 		echo '\tAllowOverride All'; 		echo '</Directory>'; 	} | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" 	&& a2enconf docker-php
                        
# 2022-11-15 12:17:02  68.00B 
/bin/sh -c a2dismod mpm_event && a2enmod mpm_prefork
                        
# 2022-11-15 12:17:01  47.58MB 
/bin/sh -c set -eux; 	apt-get update; 	apt-get install -y --no-install-recommends apache2; 	rm -rf /var/lib/apt/lists/*; 		sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; 		. "$APACHE_ENVVARS"; 	for dir in 		"$APACHE_LOCK_DIR" 		"$APACHE_RUN_DIR" 		"$APACHE_LOG_DIR" 	; do 		rm -rvf "$dir"; 		mkdir -p "$dir"; 		chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; 		chmod 777 "$dir"; 	done; 		rm -rvf /var/www/html/*; 		ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log"; 	ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log"; 	ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"; 	chown -R --no-dereference "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$APACHE_LOG_DIR"
                        
# 2022-11-15 12:16:52  0.00B 
/bin/sh -c #(nop)  ENV APACHE_ENVVARS=/etc/apache2/envvars
                        
# 2022-11-15 12:16:52  0.00B 
/bin/sh -c #(nop)  ENV APACHE_CONFDIR=/etc/apache2
                        
# 2022-11-15 12:13:21  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-15 12:13:21  0.00B 
/bin/sh -c #(nop)  ENV PHP_INI_DIR=/usr/local/etc/php
                        
# 2022-11-15 12:13:20  269.16MB 
/bin/sh -c set -eux; 	apt-get update; 	apt-get install -y --no-install-recommends 		$PHPIZE_DEPS 		ca-certificates 		curl 		xz-utils 	; 	rm -rf /var/lib/apt/lists/*
                        
# 2022-11-15 12:12:59  0.00B 
/bin/sh -c #(nop)  ENV PHPIZE_DEPS=autoconf 		dpkg-dev 		file 		g++ 		gcc 		libc-dev 		make 		pkg-config 		re2c
                        
# 2022-11-15 12:12:59  46.00B 
/bin/sh -c set -eux; 	{ 		echo 'Package: php*'; 		echo 'Pin: release *'; 		echo 'Pin-Priority: -1'; 	} > /etc/apt/preferences.d/no-debian-php
                        
# 2022-11-15 12:04:54  0.00B 
/bin/sh -c #(nop)  CMD ["bash"]
                        
# 2022-11-15 12:04:54  80.51MB 
/bin/sh -c #(nop) ADD file:d08e242792caa7f842fcf39a09ad59c97a856660e2013d5aed3e4a29197e9aaa in / 
                        
                    

镜像信息

{
    "Id": "sha256:20a3732f422b7b28dcf99e8597f093a8c135efca62ff0dc02a2d92d916369413",
    "RepoTags": [
        "php:7.4-apache",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/php:7.4-apache"
    ],
    "RepoDigests": [
        "php@sha256:c9d7e608f73832673479770d66aacc8100011ec751d1905ff63fae3fe2e0ca6d",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/php@sha256:18b3497ee7f2099a90b66c23a0bc3d5261b12bab367263e1b40e9b004c39e882"
    ],
    "Parent": "",
    "Comment": "",
    "Created": "2022-11-15T06:04:04.720772423Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "20.10.12",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "ExposedPorts": {
            "80/tcp": {}
        },
        "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 \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkg-config \t\tre2c",
            "PHP_INI_DIR=/usr/local/etc/php",
            "APACHE_CONFDIR=/etc/apache2",
            "APACHE_ENVVARS=/etc/apache2/envvars",
            "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": [
            "apache2-foreground"
        ],
        "Image": "sha256:22850fe05ef3df7be91ee5fde08bdd96c88f5668dd386338195fc0d4dc9eaa67",
        "Volumes": null,
        "WorkingDir": "/var/www/html",
        "Entrypoint": [
            "docker-php-entrypoint"
        ],
        "OnBuild": null,
        "Labels": null,
        "StopSignal": "SIGWINCH"
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 452589214,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/aeb86e067774de8206c669d233df45adeadd0ee14addfd1ef50f35ac89249371/diff:/var/lib/docker/overlay2/746b7b63560c5d8ef1912c684fd7ce93fb4a806257c02cc322fba62fc916daac/diff:/var/lib/docker/overlay2/3263b6de8a5c556ddcc9aad5f3d8233ca0a6e7030daafc7607f77e1f1520ce2b/diff:/var/lib/docker/overlay2/c0588fd8f47f82cdf35a4c75cea2c43a3586d400d610c814e477113906de869b/diff:/var/lib/docker/overlay2/c8d66b30570e8097bf578263bef9b60a068b466981bb374b40b3827ccc36c026/diff:/var/lib/docker/overlay2/ec9cce27e0cc22e5d5f02c131bb3bf1280b9aaa4d7c10bdcc09535c1e682fd95/diff:/var/lib/docker/overlay2/b591bf53c8ddae7c3486b1cbeb1fd6335879f0603e00833cfa20c9d3fb82ef30/diff:/var/lib/docker/overlay2/50285c62e5650b0982ca76161c3c507e64504bfe6384ef2bc80168cf04752dcf/diff:/var/lib/docker/overlay2/2128b9894b84e3ce1fffd0346ba7ac4c8b43d64609151d31d09af98d4dd0786e/diff:/var/lib/docker/overlay2/66ba0b348d22f79c6c65e7a790ddd19262ef8cf8e0c1be68dd2750474a6556c1/diff:/var/lib/docker/overlay2/adb14df1c638953c74c92f502c3df0b727dae4c1dc8a1dfeba3c6cccec4ee156/diff:/var/lib/docker/overlay2/3e988be08341b470f9f6a87f2a16a64ac89b8cfb7cab05262830e0363efab2bd/diff",
            "MergedDir": "/var/lib/docker/overlay2/866b964c0ec53b623ae4d611b597bb1383b00dc6f3c4cc09aa7885648d2ad452/merged",
            "UpperDir": "/var/lib/docker/overlay2/866b964c0ec53b623ae4d611b597bb1383b00dc6f3c4cc09aa7885648d2ad452/diff",
            "WorkDir": "/var/lib/docker/overlay2/866b964c0ec53b623ae4d611b597bb1383b00dc6f3c4cc09aa7885648d2ad452/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:ec4a38999118b78eab6899b913a548cb0b2c9b68fd05aff846a56b628b597f38",
            "sha256:f6011769641091803058f3d7f21ae44fe06946be14914ff729844e7ef94ab15c",
            "sha256:797a7c0590e0dd31ea2f40f5139ced40ad710a2db563718e77595c615ca0ae1a",
            "sha256:44148371c697ea6420ffeca0559033fbfe1a0e59e4b83edba4768342238b2782",
            "sha256:e5d40f64dcb4afff331a351f597ddf8427c170f2b95c6efac68b69c2e17ff1c0",
            "sha256:a538c5a6e4e0897e29c16838535953a92b3f409a4c8ca544cfd53d75158efc16",
            "sha256:30fa0c430434808e60bf91062746236ef575c425be0272d1bf99d03f48dd30b7",
            "sha256:0be1ec4fbfdc9c69142865c823a49b111045f7e408704e0386d548d8844d339f",
            "sha256:d173e78df32eb802f40d8a36386471140bf9b7af7c17fd8c14cf359e6be748ab",
            "sha256:28192e867e79209faf3b2f479e7b0cd6c6fda9f4ead765d6566fa1b1a27e97b9",
            "sha256:5464bcc3f1c210f2dbd9398dec12e0242f7389ca70b4c1ec5c216eaec1367f81",
            "sha256:529016396883c39f55a23ffed109db656310bb1b328376a3eee171f3cb8cad93",
            "sha256:3d33242bf1174812b92f4e3df8ec3f9f3582753e2d4ab2da5b72767a19602c8a"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-10-22T20:36:23.387494124+08:00"
    }
}

更多版本

docker.io/library/php:7.2.34-fpm-alpine

linux/amd64 docker.io74.15MB2024-09-20 12:42
175

docker.io/library/php:5.6.40-alpine

linux/amd64 docker.io54.34MB2024-10-04 02:35
113

docker.io/library/php:7.4-apache

linux/amd64 docker.io452.59MB2024-10-22 20:36
287

docker.io/library/php:7.4.33-fpm-alpine

linux/amd64 docker.io66.76MB2024-10-30 15:06
137

docker.io/library/php:7.4-apache-buster

linux/amd64 docker.io397.63MB2024-12-04 18:45
52

docker.io/library/php:7.4.33-apache-buster

linux/amd64 docker.io397.63MB2024-12-19 11:56
37

docker.io/library/php:7.4.33-fpm

linux/amd64 docker.io443.14MB2024-12-27 17:28
41

docker.io/library/php:8.2.27-cli-alpine3.20

linux/amd64 docker.io104.19MB2025-01-06 09:54
33

docker.io/library/php:8.2-cli

linux/amd64 docker.io526.65MB2025-01-06 10:10
27

docker.io/library/php:8.3.15-cli

linux/amd64 docker.io534.50MB2025-01-06 10:11
28

docker.io/library/php:8.3.10-fpm

linux/amd64 docker.io498.90MB2025-01-08 14:36
32