2022-06-03 20:16:35 |
Andreas Hasenack |
bug |
|
|
added bug |
2022-06-03 20:17:02 |
Andreas Hasenack |
description |
https://hub.docker.com/r/ubuntu/squid is documenting some options to the container image, namely:
-e TZ=UTC Timezone.
-p 3128:3128 Expose the proxy service
-v /path/to/logs:/var/log/squid Volume to store squid logs
-v /path/to/data:/var/spool/squid Volume to store the squid cache
I think it's missing a line in that table for the main squid configuration file, and config snippets. For example:
-v /path/to/main/config:/etc/squid/squid.conf Main squid configuration file
-v /path/to/config/snippet:/etc/squid/conf.d/snippet.conf Configuration snippets included by squid.conf
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 below one, 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. |
https://hub.docker.com/r/ubuntu/squid is documenting some options to the container image, namely:
-e TZ=UTC Timezone.
-p 3128:3128 Expose the proxy service
-v /path/to/logs:/var/log/squid Volume to store squid logs
-v /path/to/data:/var/spool/squid Volume to store the squid cache
I think it's missing a line in that table for the main squid configuration file, and config snippets. For example:
-v /path/to/main/config:/etc/squid/squid.conf Main squid configuration file
-v /path/to/config/snippet:/etc/squid/conf.d/snippet.conf Configuration snippets included by squid.conf
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. |
|
2022-06-03 20:18:23 |
Andreas Hasenack |
description |
https://hub.docker.com/r/ubuntu/squid is documenting some options to the container image, namely:
-e TZ=UTC Timezone.
-p 3128:3128 Expose the proxy service
-v /path/to/logs:/var/log/squid Volume to store squid logs
-v /path/to/data:/var/spool/squid Volume to store the squid cache
I think it's missing a line in that table for the main squid configuration file, and config snippets. For example:
-v /path/to/main/config:/etc/squid/squid.conf Main squid configuration file
-v /path/to/config/snippet:/etc/squid/conf.d/snippet.conf Configuration snippets included by squid.conf
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. |
Image:
# docker images --no-trunc --quiet ubuntu/squid:latest
sha256:0d35bcb0349b20a964e19417f66d5ee927ae2585b21ff61778bd757327ffcfc6
ubuntu/squid latest 0d35bcb0349b 6 weeks ago 190MB
https://hub.docker.com/r/ubuntu/squid is documenting some options to the container image, namely:
-e TZ=UTC Timezone.
-p 3128:3128 Expose the proxy service
-v /path/to/logs:/var/log/squid Volume to store squid logs
-v /path/to/data:/var/spool/squid Volume to store the squid cache
I think it's missing a line in that table for the main squid configuration file, and config snippets. For example:
-v /path/to/main/config:/etc/squid/squid.conf Main squid configuration file
-v /path/to/config/snippet:/etc/squid/conf.d/snippet.conf Configuration snippets included by squid.conf
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. |
|
2022-06-07 07:49:01 |
Cristovao Cordeiro |
ubuntu-docker-images: assignee |
|
Sergio Durigan Junior (sergiodj) |
|
2022-06-07 14:09:37 |
Sergio Durigan Junior |
ubuntu-docker-images: assignee |
Sergio Durigan Junior (sergiodj) |
Valentin Viennot (valentinviennot) |
|
2022-06-09 02:24:48 |
Sergio Durigan Junior |
merge proposal linked |
|
https://code.launchpad.net/~valentinviennot/ubuntu-docker-images/+git/ubuntu-server-oci/+merge/424074 |
|
2022-06-09 02:26:45 |
Sergio Durigan Junior |
ubuntu-docker-images: status |
New |
Fix Released |
|