squid: missing documentation about how to pass squid configuration to the container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Docker Images |
Fix Released
|
Undecided
|
Valentin Viennot |
Bug Description
Image:
# docker images --no-trunc --quiet ubuntu/squid:latest
sha256:
ubuntu/squid latest 0d35bcb0349b 6 weeks ago 190MB
https:/
-e TZ=UTC Timezone.
-p 3128:3128 Expose the proxy service
-v /path/to/
-v /path/to/
I think it's missing a line in that table for the main squid configuration file, and config snippets. For example:
-v /path/to/
-v /path/to/
For example, the main squid.conf file supplied with the image has no cache_dir directive, which means all the caching is done in memory. In other words, /var/spool/squid stays empty. If you add a config snippet like the one below, then when the container starts, it will also use the disk for caching:
cache_dir diskd /var/spool/squid 10240 16 256
There are many storage types, diskd was just an example, and I agree the container can't make a choice like that. But I think it's important to document how to change the config, and snippets, because very likely someone will want to use storage for cache as well, and then we can give an example in the docs like above.
Related branches
- Sergio Durigan Junior: Approve
-
Diff: 56 lines (+12/-0)4 files modifieddata/squid.yaml (+6/-0)
docs/docker.io/ubuntu/squid.md (+2/-0)
docs/public.ecr.aws/lts/squid.md (+2/-0)
docs/public.ecr.aws/ubuntu/squid.md (+2/-0)
description: | updated |
description: | updated |
Changed in ubuntu-docker-images: | |
assignee: | nobody → Sergio Durigan Junior (sergiodj) |
Reassigning to Valentin since this is documentation- related.