
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
https://github.com/chrishyze/extended-php-image
This respository provide PHP images with pre-build extensions.
You can build you own image base on these images for time-saving.
amd64, arm64v8, arm32v7bcmath, event, exif, gd, gnupg, grpc, imagick, memcached, mongodb, mysqli, opcache, pcntl, pdo_mysql, pdo_pgsql, pgsql, protobuf, redis, sockets, ssh2, swoole, xdebug, zip, zookeeper, zstd| Image Tag | Platform | Status |
|---|---|---|
| 8.2-fpm | amd64, arm64v8 | https://github.com/chrishyze/extended-php-image/actions/workflows/publish-82-fpm.yml/badge.svg?branch=publish](https://github.com/chrishyze/extended-php-image/actions/workflows/publish-82-fpm.yml) |
| 8.2-fpm-alpine | amd64, arm64v8, arm32v7 | https://github.com/chrishyze/extended-php-image/actions/workflows/publish-82-fpm-alpine.yml/badge.svg?branch=publish](https://github.com/chrishyze/extended-php-image/actions/workflows/publish-82-fpm-alpine.yml) |
| 8.2-cli | amd64, arm64v8 | https://github.com/chrishyze/extended-php-image/actions/workflows/publish-82-cli.yml/badge.svg?branch=publish](https://github.com/chrishyze/extended-php-image/actions/workflows/publish-82-cli.yml) |
| 8.2-cli-alpine | amd64, arm64v8, arm32v7 | https://github.com/chrishyze/extended-php-image/actions/workflows/publish-82-cli-alpine.yml/badge.svg?branch=publish](https://github.com/chrishyze/extended-php-image/actions/workflows/publish-82-cli-alpine.yml) |
| 8.1-fpm | amd64, arm64v8 | https://github.com/chrishyze/extended-php-image/actions/workflows/publish-81-fpm.yml/badge.svg?branch=publish](https://github.com/chrishyze/extended-php-image/actions/workflows/publish-81-fpm.yml) |
| 8.1-fpm-alpine | amd64, arm64v8, arm32v7 | https://github.com/chrishyze/extended-php-image/actions/workflows/publish-81-fpm-alpine.yml/badge.svg?branch=publish](https://github.com/chrishyze/extended-php-image/actions/workflows/publish-81-fpm-alpine.yml) |
| 8.1-cli | amd64, arm64v8 | https://github.com/chrishyze/extended-php-image/actions/workflows/publish-81-cli.yml/badge.svg?branch=publish](https://github.com/chrishyze/extended-php-image/actions/workflows/publish-81-cli.yml) |
| 8.1-cli-alpine | amd64, arm64v8, arm32v7 | https://github.com/chrishyze/extended-php-image/actions/workflows/publish-81-cli-alpine.yml/badge.svg?branch=publish](https://github.com/chrishyze/extended-php-image/actions/workflows/publish-81-cli-alpine.yml) |
| 8.0-fpm | amd64, arm64v8, arm32v7 | https://github.com/chrishyze/extended-php-image/actions/workflows/publish-80-fpm.yml/badge.svg?branch=publish](https://github.com/chrishyze/extended-php-image/actions/workflows/publish-80-fpm.yml) |
| 8.0-fpm-alpine | amd64, arm64v8, arm32v7 | https://github.com/chrishyze/extended-php-image/actions/workflows/publish-80-fpm-alpine.yml/badge.svg?branch=publish](https://github.com/chrishyze/extended-php-image/actions/workflows/publish-80-fpm-alpine.yml) |
| 8.0-cli | amd64, arm64v8, arm32v7 | https://github.com/chrishyze/extended-php-image/actions/workflows/publish-80-cli.yml/badge.svg?branch=publish](https://github.com/chrishyze/extended-php-image/actions/workflows/publish-80-cli.yml) |
| 8.0-cli-alpine | amd64, arm64v8, arm32v7 | https://github.com/chrishyze/extended-php-image/actions/workflows/publish-80-cli-alpine.yml/badge.svg?branch=publish](https://github.com/chrishyze/extended-php-image/actions/workflows/publish-80-cli-alpine.yml) |
| 7.4-fpm | amd64, arm64v8, arm32v7 | https://github.com/chrishyze/extended-php-image/actions/workflows/publish-74-fpm.yml/badge.svg?branch=publish](https://github.com/chrishyze/extended-php-image/actions/workflows/publish-74-fpm.yml) |
| 7.4-fpm-alpine | amd64, arm64v8, arm32v7 | https://github.com/chrishyze/extended-php-image/actions/workflows/publish-74-fpm-alpine.yml/badge.svg?branch=publish](https://github.com/chrishyze/extended-php-image/actions/workflows/publish-74-fpm-alpine.yml) |
| 7.4-cli | amd64, arm64v8, arm32v7 | https://github.com/chrishyze/extended-php-image/actions/workflows/publish-74-cli.yml/badge.svg?branch=publish](https://github.com/chrishyze/extended-php-image/actions/workflows/publish-74-cli.yml) |
| 7.4-cli-alpine | amd64, arm64v8, arm32v7 | https://github.com/chrishyze/extended-php-image/actions/workflows/publish-74-cli-alpine.yml/badge.svg?branch=publish](https://github.com/chrishyze/extended-php-image/actions/workflows/publish-74-cli-alpine.yml) |
Just use /usr/local/etc/php/php.ini to configure the extension.
shellecho 'zend_extension=xdebug' >> /usr/local/etc/php/php.ini
Or add an independent ini file to /usr/local/etc/php/conf.d/ directory.
shellecho 'zend_extension=xdebug' > /usr/local/etc/php/conf.d/xdebug.ini
Don't forget to reload the configuration if you are using php-fpm.
Since you are using Docker, you can also prepare a directory contains configure files and then mount the directory.
shelldocker run -v /path/to/config/directory:/usr/local/etc/php ...
In modern development, you don't need to use those outdated extensions in most cases.
Some extensions are no longer maintained, and some don't even support PHP 8.
There are alternative libraries written in pure PHP you can choose. For example, use the https://github.com/php-amqplib/php-amqplib library instead of https://github.com/php-amqp/php-amqp.
If you really want a specific extension which is not installed in the image, you can just install it using mlocati/docker-php-extension-installer by your self.
The MIT License
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务