Squid 7 on Debian with s6, ready for caching proxy use.
1.0K
Squid 7.3 with TLS, OpenSSL-based ssl_crtd, and eCAP support is precompiled for Debian Bookworm-slim.
You can run a modern caching proxy without ever building it from source.
The image runs Squid under s6-overlay v3.2.1.0 as the unprivileged proxy user.
It keeps logs and cache directories persistent-friendly and publishes 3128/tcp for client traffic.
libssl3, libecap3) are installed so the image stays small.--with-openssl --enable-ssl-crtd, and the runtime ships the openssl CLI so ssl_bump
certificate stores can be created inside the container without extra tooling./usr/sbin/squid -N -d1) while s6 monitors restarts.
s6-log streams access/cache logs to stdout.cache and log directories are owned by proxy, so they can be mounted as named volumes.
docker logs mirrors the same output from those files.squidclient -h 127.0.0.1 -p 3199 cache_object://127.0.0.1/info, enabled via a dedicated localhost-only listener and a cachemgr_passwd none info rule so only that action is exposed.docker build -t digitaldriveio/squid .
docker run --name squid \
-p 3128:3128 \
digitaldriveio/squid:snapshot
squid.conf (read-only if practical) into /etc/squid/squid.conf.
That gives you control over ACLs and caches; drop snippets in /etc/squid/conf.d/*.conf./var/cache/squid to retain warm cache contents across restarts; the default config uses the aufs store (cache_dir aufs /var/spool/squid 4096 16 256) for non-blocking disk I/O.
Use -v squid-cache:/var/cache/squid for named volumes./var/log/squid to keep the log history or let s6-log stream them to stdout.
docker logs carries the same output from those streams.squid -k reconfigure inside the container after configuration changes.
The service keeps running so you do not need to restart it.3128/tcp for proxy traffic from clients.-v squid-cache:/var/cache/squid
-v squid-logs:/var/log/squid
These ensure the proxy keeps warm caches and audit trails even when containers are replaced.
/var/log/squid/access.log (mirrored to stdout)/var/log/squid/cache.log (mirrored to stdout)docker exec squid squidclient -h 127.0.0.1 -p 3199 cache_object://127.0.0.1/info (other cache manager actions remain disabled).HEALTHCHECK CMD squidclient -h 127.0.0.1 -p 3199 cache_object://127.0.0.1/infosquid-logs service tails both log files as proxy, ensuring the same
lines reach docker logs while the files persist under /var/log/squid.ssl_crtd, and eCAP so the runtime ships with a feature-complete proxy.
It still starts from Debian Bookworm-slim.squid.conf.
The image ships without auth helpers to keep things lean.SQUID_VERSION and SQUID_TAG can be passed to docker build.digitaldriveio/squid is distributed under GPL-3.0-or-later (see LICENSE).
Content type
Image
Digest
sha256:9ab88dff0…
Size
63.8 MB
Last updated
10 months ago
docker pull digitaldriveio/squid:snapshot