
如果你使用 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 repository contains java images for use with Coder. but can choose jdk version!!!
All of our base images are built for Ubuntu or Debian environments. For example, you can use images like eclipse-temurin:21-jdk-noble or eclipse-temurin:17-jdk-noble.
The base image is using from https://hub.docker.com/_/eclipse-temurin/
The Image are push through Docker hub and Github Registry, can choose any to pull if want latest, can pull from below
docker pull ghcr.io/ziyi-bear/codercom-java-images-eclipse-temurin:main-25-jdk-nobledocker pull ghcr.io/ziyi-bear/codercom-java-images-eclipse-temurin:main-21-jdk-nobledocker pull ghcr.io/ziyi-bear/codercom-java-images-eclipse-temurin:main-17-jdk-nobleThis repository uses a multi-stage Dockerfile. You can target either the base (production-ready) image or the dev (development-ready) image.
bashdocker build --target base -t codercom-java-base:latest .
bashdocker build --target dev -t codercom-java-dev:latest .
because it will always show error below when running user coder
bashcoder@2bb4c0973b7a:/$ sudo apt update sudo: unable to initialize PAM: Critical error - immediate abort
We do not explicitly delete the default user (e.g., ubuntu) or user 1001 in these containers. This is because some base images do not contain user 1001 or a default user out of the box, which would cause user deletion commands to fail during the build process (e.g., id: '1001': no such user). Instead, we handle user permissions and creation dynamically to ensure compatibility across various JDK base images.
When using these images with Coder, the Coder agent harness will automatically provision the workspace and execute startup scripts. Since we retain the default users, the agent can easily be configured to run as the existing non-root user (or a dedicated coder user if you choose to provision one in your template).
Ensure your Coder templates are configured to start the agent with the appropriate user privileges so that your IDEs, terminal, and file system permissions behave correctly within the workspace.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务