
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
A squid docker image based on https://hub.docker.com/_/debian with ssl support.
So you should be able to listen on http and https ports.
| Docker-Tag | Branch | Debian Version | Squid Version | Status |
|---|---|---|---|---|
| stretch | stretch | Stretch (9) | 3.5 | Discontinued |
| buster | buster | Buster (10) | 4.6 | Discontinued |
| bullseye | bullseye | Bullseye (11) | 4.13 | Active |
| bookworm | bookworm | Bookworm (12) | 5.7 | Active |
| trixie | trixie | Trixie (13) | 6.13 | Active |
| latest | master | Sid | >= 7.2 | Active |
Thanks to the awesome work of https://hub.docker.com/u/balenalib (GIT: https://github.com/balena-io/qemu / https://github.com/balena-io-library/armv7hf-debian-qemu),
I was able to cross build this image for arm and aarch64.
In order to download this image for other architechtures just use this tags-scheme:
distahl/<Docker-Tag>-x86 distahl/<Docker-Tag>-armv5 distahl/<Docker-Tag>-armv7hf distahl/<Docker-Tag>-arm64v8
Please note:
There is no <Docker-Tag>-amd64, because this is the default if you only use <Docker-Tag>
docker build \ -t squid . \ -f <Dockerfile>
docker create \ --name squid \ -e TZ=Europe/London \ -e PROXY_UID=13 \ -e PROXY_GID=13 \ -v SomePath:/etc/squid \ -v SomePath:/var/log/squid \ -v SomePath:/var/spool/squid \ -p 3128:3128 \ -p 3129:3129 \ distahl/squid
If you have build the image yourself, switch the last line from distahl/squid to squid.
| Variable | Default | Description |
|---|---|---|
| TS | Europe/London | The timezone to use. |
| PROXY_UID | 13 | The user id to use for the squid process. |
| PROXY_GID | 13 | The group id to use for the squid process. |
| Volume | Description |
|---|---|
| /etc/squid | The configuration directory. If no squid.conf file is found inside this directory, then the default files will be copied into this directory on docker start. |
| /var/log/squid | The directory where you can find logfiles. |
| /var/spool/squid | By default, this is used for core dumps and cache |
| Port | Description |
|---|---|
| 3128 | HTTP Port |
| 3129 | HTTPS Port |
On first start, if there is no ssl directory and squid.conf file found inside /etc/squid, this image will create the ssl directory and adds a selfsigned certificate. Among the certificate you will find a .pfxfile, which can be imported by Windows to make it trusted. The pfx behaviour is working for Chrome based Browsers, but not for Firefox. In Firefox, just add an exception using the settings.
If you want to customize the selfsigned cert to match your domain/host, then add a file called ssl-selfsigned.conf to /etc/squid. This way the openssl command will use your config to create certificates on startup. But this will only happen if there is no /etc/squid/ssl directory and also no /etc/squid/squid.conf file.
Of course you can also add your own (official) certificates into ssl directory and point to them using the config files, which should be best pratice.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务
以下是 distahl/squid 相关的常用 Docker 镜像,适用于 不同场景 等不同场景: