
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 镜像,适用于 不同场景 等不同场景:
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。



探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务