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

docker.io/php:8.2-apache - 国内下载镜像源 浏览次数:16
🐳
源镜像 docker.io/php:8.2-apache
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/php:8.2-apache
镜像ID sha256:7e67771b1db1bc510e2efa0cd299fd49540e6773e25dd0b8d01a5a66b10d37c7
镜像TAG 8.2-apache
大小 501.78MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD apache2-foreground
启动入口 docker-php-entrypoint
工作目录 /var/www/html
OS/平台 linux/amd64
浏览量 16 次
贡献者 ad**n@boychai.xyz
镜像创建 2024-10-24T13:43:42Z
同步时间 2024-11-11 12:41
更新时间 2024-11-19 22:30
开放端口
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=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC PHP_VERSION=8.2.25 PHP_URL=https://www.php.net/distributions/php-8.2.25.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.2.25.tar.xz.asc PHP_SHA256=330b54876ea1d05ade12ee9726167332058bccd58dffa1d4e12117f6b4f616b9
镜像安全扫描 查看Trivy扫描报告

系统OS: debian 12.7 扫描引擎: Trivy 扫描时间: 2024-11-11 12:42

低危漏洞:285 中危漏洞:511 高危漏洞:126 严重漏洞:2

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

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像历史

大小 创建时间 层信息
0.00B 2024-10-24 21:43:42 CMD ["apache2-foreground"]
0.00B 2024-10-24 21:43:42 EXPOSE map[80/tcp:{}]
0.00B 2024-10-24 21:43:42 WORKDIR /var/www/html
1.35KB 2024-10-24 21:43:42 COPY apache2-foreground /usr/local/bin/ # buildkit
0.00B 2024-10-24 21:43:42 STOPSIGNAL SIGWINCH
0.00B 2024-10-24 21:43:42 ENTRYPOINT ["docker-php-entrypoint"]
17.00B 2024-10-24 21:43:42 RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
7.21KB 2024-10-24 21:43:42 COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
48.97MB 2024-10-24 21:43:42 RUN /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" 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 --disable-phpdbg --with-pear $(test "$gnuArch" = 'riscv64-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 '/=>/ { 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
587.00B 2024-10-24 21:43:42 COPY docker-php-source /usr/local/bin/ # buildkit
12.61MB 2024-10-24 21:43:42 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
0.00B 2024-10-24 21:43:42 ENV PHP_SHA256=330b54876ea1d05ade12ee9726167332058bccd58dffa1d4e12117f6b4f616b9
0.00B 2024-10-24 21:43:42 ENV PHP_URL=https://www.php.net/distributions/php-8.2.25.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.2.25.tar.xz.asc
0.00B 2024-10-24 21:43:42 ENV PHP_VERSION=8.2.25
0.00B 2024-10-24 21:43:42 ENV GPG_KEYS=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
0.00B 2024-10-24 21:43:42 ENV PHP_LDFLAGS=-Wl,-O1 -pie
0.00B 2024-10-24 21:43:42 ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
0.00B 2024-10-24 21:43:42 ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
237.00B 2024-10-24 21:43:42 RUN /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 # buildkit
68.00B 2024-10-24 21:43:42 RUN /bin/sh -c a2dismod mpm_event && a2enmod mpm_prefork # buildkit
49.76MB 2024-10-24 21:43:42 RUN /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" "$APACHE_RUN_DIR/socks" ; do rm -rvf "$dir"; mkdir -p "$dir"; chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; chmod 1777 "$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" # buildkit
0.00B 2024-10-24 21:43:42 ENV APACHE_ENVVARS=/etc/apache2/envvars
0.00B 2024-10-24 21:43:42 ENV APACHE_CONFDIR=/etc/apache2
0.00B 2024-10-24 21:43:42 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
0.00B 2024-10-24 21:43:42 ENV PHP_INI_DIR=/usr/local/etc/php
315.64MB 2024-10-24 21:43:42 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
0.00B 2024-10-24 21:43:42 ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
46.00B 2024-10-24 21:43:42 RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
0.00B 2024-10-17 08:20:30 /bin/sh -c #(nop) CMD ["bash"]
74.78MB 2024-10-17 08:20:29 /bin/sh -c #(nop) ADD file:90b9dd8f12120e8b2cd3ece45fcbe8af67e40565e2032a40f64bd921c43e2ce7 in /

镜像信息

{
    "Id": "sha256:7e67771b1db1bc510e2efa0cd299fd49540e6773e25dd0b8d01a5a66b10d37c7",
    "RepoTags": [
        "php:8.2-apache",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/php:8.2-apache"
    ],
    "RepoDigests": [
        "php@sha256:7d46f3796ea2c1c1d01db4cf3f7a8336cb9aee283b077036f23fa604386fc958",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/php@sha256:9b741a9228bd62c634871ade06ebc5b17c6f29860d0c98702278d8fa62676d60"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-10-24T13:43:42Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "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=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC",
            "PHP_VERSION=8.2.25",
            "PHP_URL=https://www.php.net/distributions/php-8.2.25.tar.xz",
            "PHP_ASC_URL=https://www.php.net/distributions/php-8.2.25.tar.xz.asc",
            "PHP_SHA256=330b54876ea1d05ade12ee9726167332058bccd58dffa1d4e12117f6b4f616b9"
        ],
        "Cmd": [
            "apache2-foreground"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": null,
        "WorkingDir": "/var/www/html",
        "Entrypoint": [
            "docker-php-entrypoint"
        ],
        "OnBuild": null,
        "Labels": null,
        "StopSignal": "SIGWINCH"
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 501776664,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/736f1342f9fa417fc1fd8a3d901f6b77451f1680e75183e428813958d32ec3c2/diff:/var/lib/docker/overlay2/3fff42831ba6b425c75f4a21a49fa2ee0101be0be4a77c2f397cdd8fddeed838/diff:/var/lib/docker/overlay2/a10273803e23eaf06347684b80ab2c777ca13ecf735fb0f8c4914e9720611b37/diff:/var/lib/docker/overlay2/d3aba3557b0d7eec8f9019f88d2bf83d616796545f62418859317723d616f04f/diff:/var/lib/docker/overlay2/afeb87e06aa552f489b435d821d4f71bc45346233fd18bc7db156265716f4b05/diff:/var/lib/docker/overlay2/bfb224bfbbad11b42c799e7f79fef51c74897da7fcbf6d26fb2b1b068a902a1b/diff:/var/lib/docker/overlay2/6925d6fa867bea3f4cf35bdc8f8190c82855ed2d197f83116d34a76c90e7c730/diff:/var/lib/docker/overlay2/402ce73bd99e44b4a18c66cfba809f289a6143ec2df7450026552a26b1b4318c/diff:/var/lib/docker/overlay2/d83eb30d416d019439ce2ca3c0bfaebc0f490d774874888db7a6bd5b3b0aaee6/diff:/var/lib/docker/overlay2/374e9a1f048ce1169f30d1d1e32c12e12ff5a972acdb6d0fea2db212191199a7/diff:/var/lib/docker/overlay2/ec232cf03e495e43571b734171b3840ec1b5b72f91be84bd1146dcf5382822fe/diff:/var/lib/docker/overlay2/f11d218fe1fdb1d974bdc0ea6f257c185d3fb7f14183341b204b6f6842b7b0c4/diff:/var/lib/docker/overlay2/640dc40711366eefdc38587353d7800897ec5b45fb0486472d1bbe1802e322be/diff",
            "MergedDir": "/var/lib/docker/overlay2/3af332aad676188bda56aea57e78f919c4921459795c3ab504e7b260cc9fb5a3/merged",
            "UpperDir": "/var/lib/docker/overlay2/3af332aad676188bda56aea57e78f919c4921459795c3ab504e7b260cc9fb5a3/diff",
            "WorkDir": "/var/lib/docker/overlay2/3af332aad676188bda56aea57e78f919c4921459795c3ab504e7b260cc9fb5a3/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:98b5f35ea9d3eca6ed1881b5fe5d1e02024e1450822879e4c13bb48c9386d0ad",
            "sha256:4871d2b39fc860deefebdd034fd723440abd852e125d4dae538a5686ebd0608b",
            "sha256:984bd4243a9f8c01e953c224e0f10264188c9ae40f31ab29f2c23c377dcbccc2",
            "sha256:c3813a7b8bb54ee3135da30933f91a049747f15cd138ca34d45a706a405d8fce",
            "sha256:f839ec175244961318ab9461bb04ff5b095fcb4e12544d8273ca5f5b03ee97c2",
            "sha256:aaa3a38a999479fa612528d4dcbc71bb417304069c42e86ca853fe23a63ced61",
            "sha256:8f040415fea4db426562ac9c4b18e1dd1b22dff8893ae3eec74632744cd34fa2",
            "sha256:008a76506e790cadb05b6711553a1fd5687f6894825e6a8daded33622058cb7c",
            "sha256:3be08da42fecfc4bb3a996d508658ccaf76d4c2661cdc406b7c2375a037cc2bc",
            "sha256:e5e3df6ea3d9f0526805c76a54cbeeaf04135a855f99d3a92a8d9e3726bf4df5",
            "sha256:286cf84f44456047b9580611edec486f3b18896b2d2fde17795f8de6d1835bd5",
            "sha256:e837bd6c40203fa581f4d6293aa5a1b0df467836a4ca5ef4c4dde998c2aee566",
            "sha256:27ed28a543ef74e4c6ef56af8c7b7e47f566d2bffd14d9861779365d89da5f58",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-11-11T12:41:05.864391417+08:00"
    }
}

更多版本

docker.io/php:7.4.33-zts-alpine3.16

linux/amd64 docker.io64.46MB2024-06-19 14:29
144

docker.io/phpmyadmin:fpm

linux/amd64 docker.io552.51MB2024-07-12 21:30
188

docker.io/phpmyadmin:5.2.1

linux/amd64 docker.io561.83MB2024-07-15 10:30
134

docker.io/phpdockerio/php:7.4-fpm

linux/amd64 docker.io176.11MB2024-07-28 11:46
359

docker.io/php:7.4.0-fpm-alpine

linux/amd64 docker.io83.46MB2024-09-19 02:16
117

docker.io/php:7.3.29-fpm

linux/amd64 docker.io452.87MB2024-10-11 16:58
78

docker.io/php:8.3-apache

linux/amd64 docker.io507.04MB2024-10-16 14:44
131

docker.io/php:7.1.4-apache

linux/amd64 docker.io389.62MB2024-10-25 16:22
51

docker.io/php:7.1.33-buster

linux/amd64 docker.io389.34MB2024-10-28 13:52
50

docker.io/phpipam/phpipam-cron:latest

linux/amd64 docker.io183.82MB2024-11-01 11:36
42

docker.io/phpipam/phpipam-www:latest

linux/amd64 docker.io183.82MB2024-11-01 11:37
63

docker.io/php:8.2-apache

linux/amd64 docker.io501.78MB2024-11-11 12:41
15