
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
This project is a https://github.com/dimonoff/poky-kas-container that generates a Docker image using the poky-container and kas tools. The generated Docker image can be used for building and testing various software projects.
Poky is a reference distribution of the Yocto Project, an open-source project for building custom Linux-based operating systems. Poky provides a set of tools and recipes for building Linux distributions targeting various hardware architectures and use cases.
Poky-container is a tool for running Poky inside a Docker container, which allows developers to easily set up a consistent and isolated development environment.
KAS is a tool for automating the setup and configuration of Yocto Project builds. It provides a declarative configuration file format and a set of plugins for configuring the build environment.
bash./build_image.sh ubuntu-18.04 2.6.2
bash./deploy_image.sh ubuntu-18.04 2.6.2
Here a very simple but usable scenario for using the container is described. It is by no means the only way to run the container, but is a great starting point.
Create a workdir or volume
Linux
The workdir you create will be used for the output created while using the container. For example a user could create a directory using the command
bashmkdir -p /home/myuser/mystuff
It is important that you are the owner of the directory. The owner of the directory is what determines the user id used inside the container. If you are not the owner of the directory, you may not have access to the files the container creates.
For the rest of the Linux instructions we'll assume the workdir chosen was
/home/myuser/mystuff.
Windows/Mac
On Windows or Mac a workdir isn't needed. Instead the volume called myvolume will be used. This volume should have been created when following the instructions at https://github.com/crops/docker-win-mac-docs/wiki.
The docker command
Linux
Assuming you used the workdir from above, the command to run a container for the first time would be:
bashdocker run --rm -it -v /home/myuser/mystuff:/workdir dimonoff/poky-kas-container:ubuntu-20.04-kas-3.2.3 --workdir=/workdir kas shell meta-custom/kas/kas-project.yml
or, if you have SELinux in enforcing mode:
bashdocker run --rm -it -v /home/myuser/mystuff:/workdir:Z dimonoff/poky-kas-container:ubuntu-20.04-kas-3.2.3 --workdir=/workdir kas shell meta-custom/kas/kas-project.yml
Windows/Mac
bashdocker run --rm -it -v myvolume:/workdir dimonoff/poky-kas-container:ubuntu-20.04-kas-3.2.3 --workdir=/workdir kas shell meta-custom/kas/kas-projet.yml
Let's discuss the options:
This should put you at a prompt similar to:
bashpokyuser@3bbac563cacd:/workdir$
At this point you should be able to follow the same instructions as described
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务