
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
!http://augustash.s3.amazonaws.com/logos/ash-inline-color-500.png
This base container is not currently aimed at public consumption. It exists as a starting point for August Ash containers.
1.0.3, latest https://github.com/augustash/docker-alpine-magento-cli/blob/1.0.3/Dockerfile1.0.2 https://github.com/augustash/docker-alpine-magento-cli/blob/1.0.2/Dockerfile1.0.1 https://github.com/augustash/docker-alpine-magento-cli/blob/1.0.1/Dockerfile1.0.0 https://github.com/augustash/docker-alpine-magento-cli/blob/1.0.0/Dockerfilehttps://github.com/augustash/docker-alpine-magento-cli/blob/master/VERSIONS.md
This image provides the ability to run single, one-off commands as well as a long running PHP-FPM/Cron process. Run a single command like this:
bashdocker run --rm \ augustash/alpine-magento-cli magento cache:clean
bashdocker run --rm \ -v $(pwd)/conf/auth.json:/.composer/auth.json \ augustash/alpine-magento-cli composer update
The image can also be used as part of a cluster for running cron and various Magento 2-specific utilities.
bashdocker run -d -it \ --name cli \ --net <NETWORK NAME> \ -v $(pwd)/conf/auth.json:/.composer/auth.json \ -v $(pwd)/conf/crontab:/etc/crontabs/ash \ -v $(pwd)/src:/src \ augustash/alpine-magento-cli
To help avoid nasty permissions errors, the container allows you to specify your own PUID and PGID. This can be a user you've created or even root (not recommended).
The following variables can be set and will change how the container behaves. You can use the -e flag, an environment file, or your Docker Compose file to set your preferred values. The default values are shown:
PUID=501PGID=1000DEBUG=falsePHP_MEMORY_LIMIT=2GMAGENTO_PATH=/srcMAGENTO_CODEBASE=ccMAGENTO_USE_SAMPLE_DATA=falseMAGENTO_INSTALL_DB=falseMAGENTO_BASE_URL=[***]MAGENTO_DB_HOST=mysqlMAGENTO_DB_NAME=magento2MAGENTO_DB_USER=userMAGENTO_DB_PASSWORD=passwordMAGENTO_ADMIN_FIRSTNAME=AugustMAGENTO_ADMIN_LASTNAME=AshMAGENTO_ADMIN_EMAIL=***MAGENTO_ADMIN_USER=augustashMAGENTO_ADMIN_PASSWORD=passwordMAGENTO_BACKEND_FRONTNAME=random-admin-urlMAGENTO_LANGUAGE=en_USMAGENTO_CURRENCY=USDMAGENTO_TIMEZONE=America/ChicagoMAGENTO_REWRITES=1The following utilties are installed and available by default within this image. All scripts proxy to their official counterpart but run by the ash user instead of root.
composerRuns https://getcomposer.org/, the defacto dependency manager for PHP.
gruntRuns Grunt, the JavaScript task runner.
gulpRuns Gulp, which is an alternate JavaScript task runner.
installerCustom script to install and configure a new Magento 2 instance. Requires the MAGENTO_ environment variables defined above.
magentoA proxy to the bin/magento tool that comes with Magento 2.
n98Runs n98-magerun2, the swiss army knife for Magento developers, sysadmins and devops.
When this image is used as part of a Magento 2 cluster, the following commands can be useful:
bashdocker-compose run --rm magento-cli magento deploy:mode:set developer docker-compose run --rm magento-cli magento dev:urn-catalog:generate .idea/misc.xml docker-compose run --rm magento-cli magento setup:upgrade docker-compose run --rm magento-cli magento setup:di:compile docker-compose run --rm magento-cli magento setup:static-content:deploy docker-compose run --rm magento-cli magento cache:clean
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务