Sign inSign up

euiitgs/squid

By euiitgs

Updated over 7 years ago

Docker image of Squid service

Image
0

2.5K

euiitgs/squid repository overview

Squid

Minimal Squid docker image based on Alpine Linux 3.8.

Usage

It's recommended that you use host networking when running squid, that you can see the source IP. Otherwise you will see the IP of your docker host.

docker run -p 3128:3128 --name=myproxy euiitgs/squid

Test proxy.

curl -li --proxy http://localhost:3128 http://wwww.google.com

To use this proxy, configure your environment or operating system correctly:

export http_proxy=http://PROXY_HOST:3128
export https_proxy=http://PROXY_HOST:3128

Port 3128 is default.

Volumes
  • /var/cache/squid: Here goes the squid cache
  • /var/logs/squid: Here goes the squid logs

Configuration

If you want to configure things like authentication, you should overwrite the default squid configuration. You can do this either by using the volume function of docker, or by creating a child image. You should use the included configuration as base.

Via Volume

docker run -p 3128:3128 --name=squid -v ./squid.conf:/etc/squid/squid.conf euiitgs/squid

Via childimage

FROM euiitgs/squid

COPY squid.conf /etc/squid/squid.conf

Tag summary

Content type

Image

Digest

Size

320.7 MB

Last updated

over 7 years ago

docker pull euiitgs/squid