docker.io/php:8.3-cli linux/amd64

docker.io/php:8.3-cli - 国内下载镜像源 浏览次数:79
🐳
源镜像 docker.io/php:8.3-cli
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/php:8.3-cli
镜像ID sha256:d9ac13af254bf3955ab3ba88b7beafc62bcf5230430f205ae24065b68b9dc09c
镜像TAG 8.3-cli
大小 535.21MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD php -a
启动入口 docker-php-entrypoint
工作目录 /
OS/平台 linux/amd64
浏览量 79 次
贡献者 xi******6@126.com
镜像创建 2024-11-21T06:31:33Z
同步时间 2024-12-03 11:52
更新时间 2025-01-18 12:31
环境变量
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 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: debian 12.8 扫描引擎: Trivy 扫描时间: 2024-12-03 11:53

低危漏洞:239 中危漏洞:424 高危漏洞:98 严重漏洞:1

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

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 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  17.00B 执行命令并创建新的镜像层
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  131.84MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 		savedAptMark="$(apt-mark showmanual)"; 	apt-get update; 	apt-get install -y --no-install-recommends 		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" 		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)"; 	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-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 				--enable-phpdbg 		--enable-phpdbg-readline 				--with-pear 				--with-libdir="lib/$debMultiarch" 				--enable-embed 	; 	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 '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' 		| 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 # buildkit
                        
# 2024-11-21 14:31:33  587.00B 复制新文件或目录到容器中
COPY docker-php-source /usr/local/bin/ # buildkit
                        
# 2024-11-21 14:31:33  12.94MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 		savedAptMark="$(apt-mark showmanual)"; 	apt-get update; 	apt-get install -y --no-install-recommends gnupg; 	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 # 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  315.65MB 执行命令并创建新的镜像层
RUN /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/* # buildkit
                        
# 2024-11-21 14:31:33  0.00B 设置环境变量 PHPIZE_DEPS
ENV PHPIZE_DEPS=autoconf 		dpkg-dev 		file 		g++ 		gcc 		libc-dev 		make 		pkg-config 		re2c
                        
# 2024-11-21 14:31:33  46.00B 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	{ 		echo 'Package: php*'; 		echo 'Pin: release *'; 		echo 'Pin-Priority: -1'; 	} > /etc/apt/preferences.d/no-debian-php # buildkit
                        
# 2024-11-11 08:00:00  0.00B 设置默认要执行的命令
CMD ["bash"]
                        
# 2024-11-11 08:00:00  74.78MB 复制文件或目录到容器中
ADD rootfs.tar.xz / # buildkit
                        
                    

镜像信息

{
    "Id": "sha256:d9ac13af254bf3955ab3ba88b7beafc62bcf5230430f205ae24065b68b9dc09c",
    "RepoTags": [
        "php:8.3-cli",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/php:8.3-cli"
    ],
    "RepoDigests": [
        "php@sha256:cfa1b14dbd65ed57b1fece734be8278f3c2160fcb90b9386d58b95573400bad1",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/php@sha256:07bf6c8adc02effd0d09cea55151a98c66c775feadd20f9bd1fd4c7c50d87cd6"
    ],
    "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 \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkg-config \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": 535211946,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/02b4a8f9502bc99fe0ff63c3d6b772ac43d249435a5f568bd6d0d91ba57fe9c0/diff:/var/lib/docker/overlay2/35b0d472917ada1e7519d8db35b0c4fa124e1541b70469293b4cae3b3d3bae70/diff:/var/lib/docker/overlay2/c48a4a6912a2068e87b62118e3dbd9654d8569119ef685e879568d825bb92594/diff:/var/lib/docker/overlay2/4db8c7b1cf7b804c1e381db861c33afb0318b5beb5735e080cf8506b8c57df5a/diff:/var/lib/docker/overlay2/b56f2801f2c8f45038e8d10fa4cd3bb1ba369170bbdcf2c1c0f826eab54ba396/diff:/var/lib/docker/overlay2/2192863cf672799dbf65f937de654261f0f47c4003c8bbadbd1977083ce5f6cf/diff:/var/lib/docker/overlay2/84f08cb039395ece66a4ddaa75498c2676c13c9316fe406c31327c0be780649f/diff:/var/lib/docker/overlay2/91eaeb3375babd906dc7e8a6c516620560ab7dbfb21b9881f9ae71d2e2f398b0/diff",
            "MergedDir": "/var/lib/docker/overlay2/b6f39ec4cec6975a4d9d007511ea9f07ac3833752222d37e83aa4d3b154b44f2/merged",
            "UpperDir": "/var/lib/docker/overlay2/b6f39ec4cec6975a4d9d007511ea9f07ac3833752222d37e83aa4d3b154b44f2/diff",
            "WorkDir": "/var/lib/docker/overlay2/b6f39ec4cec6975a4d9d007511ea9f07ac3833752222d37e83aa4d3b154b44f2/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:c3548211b8264f8bfa47a6727043a64f1791b82ac965a284a7ea187e971a95e2",
            "sha256:04d51279ca08301d6e8c7cbcaa32f4b7d27869efff15d99c382bfad111b8ffdb",
            "sha256:97593a30acbb5164ea3be06e97e0827d7645ffd6eb30eba11ff428d0c3bb8012",
            "sha256:cc9a905378dd41f3545a37d40b3b651429056dfc0f2f3a1a7ef2ef576a7f94a9",
            "sha256:cac82eb36de4f574a16cfdbf7a12796f9ef063c5f98841de66eb8e68e0dbebd0",
            "sha256:2ed577aba6c1fcce0a48ac21e747932cc23744eb471b3cd8055f39acfe204689",
            "sha256:e641ef848634c3e246e62b6c303131e9d685320411c3e75838e1fb463a55eb2d",
            "sha256:b7e4c558ff7d907a5779fb8c353841d068bba93e70e362756c904a8dd9c014f4",
            "sha256:1da073b639137fe7c022dface2167c0530c7772f8b703c2e2f4f5b514c7778d9"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-12-03T11:51:43.091263462+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
78

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