
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
'devcontainers' save huge amounts of time when onboarding new developers to a project or spinning up projects you may not have worked with for a while. A devcontainer should provide a pre-configured environment for building, deploying and in many cases running a project.
This devcontainer configuration provides an Ubuntu-based environment pre-configured with CDK and AWS CLI v2. It even mounts your ~/.aws directory within the container so you can re-use your existing AWS credentials.
Source and usage instructions can be found at https://github.com/barkinggecko/aws-cdk-devcontainer
devcontainer.json file is required to run this container in IDEs that support the Development Containers Specification (https://containers.dev/), such as VS Code.// For format details, see https://aka.ms/devcontainer.json. { "name": "aws-cdk-devcontainer", // Choose `image` to get started quickly using the image already created, according to the Dockerfile // in this directory, in hub.docker.com. // // Alternatively, use `build` to build your image from the Dockerfile in this directory. This will // ensure you have built with the latest version of all packages but also provides you with the option // to extend the aws-dev-container by creating your own Dockerfile that starts with // `FROM barkinggecko/aws-cdk-devcontainer`. // // See https://containers.dev/guide/dockerfile for more information. "image": "barkinggecko/aws-cdk-devcontainer", // "build": { // // Path is relataive to the devcontainer.json file. // "dockerfile": "Dockerfile" // }, "mounts": [ { "source": "/home/${localEnv:USER}/.aws", "target": "/home/devcontainer/.aws", "type": "bind" } ], // Features to add to the dev container. More info: https://containers.dev/features. // "features": {}, // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [], // Use 'postCreateCommand' to run commands after the container is created. // "postCreateCommand": "", // Configure tool-specific properties. "customizations": { // Configure properties specific to VS Code. "vscode": { // Add the IDs of extensions you want installed when the container is created. // Alternatively, just use Setting Sync to ensure you are always running your // preferred VS Code setup ( https://code.visualstudio.com/docs/editor/settings-sync ). "extensions": [ // "amazonwebservices.aws-toolkit-vscode", // "devadvice.serverlessconsole", ] } }, // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. // "remoteUser": "root" }
devcontainer.json currently references the source directories for mounts as if they were on a Linux file system. Edit the value of source accordingly if you are on another platform./workspaces/<project name> when running the devcontainer in VS Code).~/.aws directory from your Docker host as a volume (available as ~/.aws in the container). This very conveniently means that when operating within the container, you will be able to access AWS CLI profiles and credentials from your host machine.devcontainer with UID 1000 and GID 1000. This provides added security over typical container configurations that run as root. Given most users (on Ubuntu at least) run with UID 1000 and GID 1000, then files created within the container in volumes that are accessible outside the container (such as the project directory) should be editable by non-root users outside the container. This is a convenience that, for example, should allow users to perform git operations both inside and outside the container on the project directory.git-remote-codecommit for those using AWS CodeCommit repositories.yawsso.您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务