
如果你使用 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/Sam-Tech-Lab-Git |
https://hub.docker.com/r/samtechrepo/focal https://hub.docker.com/r/samtechrepo/focal https://github.com/Sam-Tech-Lab-Git https://github.com/Sam-Tech-Lab-Git/Docker-Ubuntu-Focal/blob/main/LICENSE https://github.com/Sam-Tech-Lab-Git/Docker-Ubuntu-Focal/actions/workflows/build-amd64.yml https://github.com/Sam-Tech-Lab-Git/Docker-Ubuntu-Focal/actions/workflows/build-arm64.yml https://github.com/Sam-Tech-Lab-Git/Docker-Ubuntu-Focal/actions/workflows/build-multiarch.yml
This image provides a clean, stable, and minimal Ubuntu base to build production-ready Docker containers.
It is built from scratch using the official Ubuntu OCI rootfs, ensuring authenticity, lightness, and reproducibility.
Automatic monthly updates:
The image is rebuilt every month with the latest Ubuntu updates and security patches.
Designed to be secure, fast, and multi-purpose, it includes advanced APT optimizations, a non-root user, and system hardening for maximum reliability.
systemd, upstart)appuser) for safer container execution/tmp, /var/log, /var/lib/apt/listsen_US.UTF-8, UTC)umask 027| Category | Packages |
|---|---|
| System base | bash, cron, curl, gnupg, jq, netcat-openbsd, tzdata |
| System tools | systemd-standalone-sysusers, apt-utils, locales |
| Variable | Default value | Description |
|---|---|---|
PUID | 999 | Non-root user ID |
PGID | 999 | Non-root group ID |
HOME | /config | Home directory |
LANG | en_US.UTF-8 | Default locale |
TZ | UTC | Timezone |
DEBIAN_FRONTEND | noninteractive | Disables interactive APT pro***s |
| Field | Value |
|---|---|
| OS | Ubuntu |
| Architectures | amd64, arm64 |
| Source | Ubuntu OCI RootFS |
| Maintainer | Sam Tech Lab |
| License | MIT |
| Update frequency | Monthly (automated) |
bashdocker run -it --rm samtechrepo/focal:latest /bin/bash
dockerfileFROM samtechrepo/focal:latest RUN apt update && apt install -y nginx CMD ["nginx", "-g", "daemon off;"]
This Dockerfile creates a custom image based on samtechrepo/focal:latest with NGINX preinstalled.
You can then build and test it locally:
bashdocker build -t my-nginx . docker run -d -p 8080:80 my-nginx
Create a file named docker-compose.yml:
yamlservices: web: image: samtechrepo/focal:latest container_name: nginx-web restart: unless-stopped ports: - "8080:80" volumes: - ./html:/var/www/html environment: TZ: "Europe/Paris" PUID: 1000 PGID: 1000 command: > bash -c " apt update && apt install -y nginx && nginx -g 'daemon off;' "
Then start the container :
bashdocker compose up -d
This automatically pulls the optimized Ubuntu image from Sam Tech Lab, installs NGINX, and launches the web server at http://localhost:8080.
To stop the container :
bashdocker compose down
Cette image fournit une base Ubuntu propre, stable et minimaliste pour construire des conteneurs Docker de production.
Elle est construite from scratch à partir du rootfs officiel Ubuntu OCI, garantissant authenticité, légèreté et reproductibilité.
Mises à jour automatiques mensuelles :
L’image est reconstruite chaque mois avec les dernières mises à jour et correctifs de sécurité Ubuntu officiels.
Conçue pour être sécurisée, rapide et multi-usage, elle inclut des optimisations APT avancées, un utilisateur non-root et un durcissement du système pour une compatibilité maximale.
systemd, upstart)appuser) pour une exécution plus sûre/tmp, /var/log, /var/lib/apt/listsen_US.UTF-8, UTC)root verrouilléumask 027 par défaut| Catégorie | Paquets |
|---|---|
| Base système | bash, cron, curl, gnupg, jq, netcat-openbsd, tzdata |
| Outils système | systemd-standalone-sysusers, apt-utils, locales |
| Variable | Valeur par défaut | Description |
|---|---|---|
PUID | 999 | Identifiant de l’utilisateur non-root |
PGID | 999 | Identifiant de groupe non-root |
HOME | /config | Répertoire personnel |
LANG | en_US.UTF-8 | Locale par défaut |
TZ | UTC | Fuseau horaire |
DEBIAN_FRONTEND | noninteractive | Empêche les invites APT interactives |
| Champ | Valeur |
|---|---|
| Système | Ubuntu |
| Architecture | amd64, arm64 |
| Source | Ubuntu OCI RootFS |
| Mainteneur | Sam Tech Lab |
| Licence | MIT |
| Mise à jour | Mensuelle (automatisée) |
bashdocker run -it --rm samtechrepo/focal:latest /bin/bash
dockerfileFROM samtechrepo/focal:latest RUN apt update && apt install -y nginx CMD ["nginx", "-g", "daemon off;"]
Ce Dockerfile crée une image personnalisée basée sur samtechrepo/focal:latest, avec NGINX préinstallé.
Vous pouvez ensuite la construire et la tester localement :
bashdocker build -t my-nginx . docker run -d -p 8080:80 my-nginx
Créer un fichier nommé docker-compose.yml :
yamlservices: web: image: samtechrepo/focal:latest container_name: nginx-web restart: unless-stopped ports: - "8080:80" volumes: - ./html:/var/www/html environment: TZ: "Europe/Paris" PUID: 1000 PGID: 1000 command: > bash -c " apt update && apt install -y nginx && nginx -g 'daemon off;' "
Puis lancer le conteneur :
bashdocker compose up -d
Cela télécharge automatiquement l’image Ubuntu optimisée Sam Tech Lab, installe Nginx, et démarre le serveur web sur http://localhost:8080.
Arrêter le conteneur :
bashdocker compose down
This project is distributed under the MIT license — see the https://github.com/Sam-Tech-Lab-Git/Docker-Ubuntu-Focal/blob/main/LICENSE file for more details.
Ce projet est distribué sous la licence MIT — consultez le fichier https://github.com/Sam-Tech-Lab-Git/Docker-Ubuntu-Focal/blob/main/LICENSE pour plus de détails.
textCopyright (c) 2025 Sam Tech Lab
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务