
如果你使用 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/rokibhasansagar/docker_droid-builder/workflows/AIO%20Docker%20Builder/badge.svg](https://github.com/rokibhasansagar/docker_droid-builder/actions) https://img.shields.io/badge/Powered%20By-Github%20Actions-blue?logo=github-actions](https://github.com/features/actions "Know about Github Actions") https://img.shields.io/badge/Based%20On-Ubuntu-orange?logo=ubuntu](https://ubuntu.com/download) https://img.shields.io/github/license/rokibhasansagar/docker_droid-builder](https://github.com/rokibhasansagar/docker_droid-builder/blob/master/LICENSE) https://images.microbadger.com/badges/commit/fr3akyphantom/droid-builder.svg](https://microbadger.com/images/fr3akyphantom/droid-builder) https://img.shields.io/docker/pulls/fr3akyphantom/droid-builder](https://hub.docker.com/r/fr3akyphantom/droid-builder "Show the Docker Repository")
Bionic-based Image Info and It's Size: https://images.microbadger.com/badges/version/fr3akyphantom/droid-builder:bionic.svg](https://microbadger.com/images/fr3akyphantom/droid-builder:bionic) https://img.shields.io/docker/image-size/fr3akyphantom/droid-builder/bionic?cacheSeconds=3600](#) https://img.shields.io/microbadger/layers/fr3akyphantom/droid-builder/bionic](#)
Focal-based Image Info and It's Size: https://images.microbadger.com/badges/version/fr3akyphantom/droid-builder:focal.svg](https://microbadger.com/images/fr3akyphantom/droid-builder:focal) https://img.shields.io/docker/image-size/fr3akyphantom/droid-builder/focal?cacheSeconds=3600](#) https://img.shields.io/microbadger/layers/fr3akyphantom/droid-builder/focal](#)
You might want to start the bash environment as root user by running sudo -s.
Now, you have choose on which platform you want to build. You got Bionic Beaver (18.04.4 LTS) and Focal Fossa (20.04 LTS).
Pull the image of by running the following command.
bash# If you want only bionic, run this --- docker pull fr3akyphantom/droid-builder:bionic # But if you want focal, run this instead --- docker pull fr3akyphantom/droid-builder:focal
Set TAG as "bionic" or "focal", according to your specified needs.
bashdocker run --privileged --rm -i \ # optionally set/change the name/hostname of the container --name docker_droid-builder --hostname droid-builder \ -e USER_ID=$(id -u) -e GROUP_ID=$(id -g) \ # mount working directory as volume, '/home/builder' must be the Container's mount path -v "$HOME:/home/builder:rw,z" \ # mount ccache volume too, host machine must have $HOME/.ccache folder if ccache is not installed -v "$HOME/.ccache:/srv/ccache:rw" \ fr3akyphantom/droid-builder:${TAG} \ /bin/bash
When this Image runs as the droid-builder Container, You won't need to install any other softwares.
Check the https://github.com/rokibhasansagar/docker_droid-builder/blob/master/Dockerfile to know more detail about installed packages.
When Docker Container is started, run the following commands...
bash# Change directory to any sub-folder (name as you like) mkdir -p ${PROJECT_DIR} && cd ${PROJECT_DIR} # Set your github usename and email, required by repo binary git config --global user.email $GitHubMail git config --global user.name $GitHubName git config --global color.ui true # Initialize the repo here to begin repo init --depth 1 -q -u https://github.com/${DEMO_ORG}/${DEMO_MANIFEST}.git -b ${MANIFEST_BRANCH} # sync the repo with maximum connections # wait for the whole repo to be downloaded repo sync -c -q --force-sync --no-clone-bundle --no-tags -j$(nproc --all) # clone the specific device trees git clone https://github.com/${DEMO_USER}/${DEVICE_REPONAME} device/${VENDOR}/${CODENAME} # and other dependent repos too, if you need. # Start the Build Process export ALLOW_MISSING_DEPENDENCIES=true source build/envsetup.sh lunch ${BUILD_LUNCH} # you can now delete the .repo folder if you need more space, # but it is not recommended for multi-build or shared projects # build only recovery image or make full ROM/otapackage make -j$(nproc --all) recoveryimage || make -j$(($(nproc --all) / 2)) otapackage
Do away with your imagination.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务