Here the dockerfile for an alpine based squid proxy working with default installation

FROM alpine
RUN apk update && \
apk add squid
CMD ["/usr/sbin/squid", "-NCd1"]

Build the image:

docker build -t basic_squid .

and create the container by running:

docker run -d --rm --name squid-test -p 3128:3128 basic_squid

test it by running curl:

curl -x http://localhost:3128 -L http://x.x.x.x

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s