Created
December 10, 2016 13:52
-
-
Save KrustyHack/287dce69f9d27fba7b7c5fc3d54ad2d6 to your computer and use it in GitHub Desktop.
Launch a Squid Proxy with Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -O - https://get.docker.io |sh && mkdir -p /home/docker/squid && wget -O /home/docker/squid/squid.conf https://gist.githubusercontent.com/KrustyHack/ae522e499ebede96effc39ab50ae40ee/raw/1262ff96528df31dd6a60808796a189e3f1249fe/squid-3.3.default.conf && docker run --name squid -d --restart=always --publish 3128:3128 --volume /home/docker/squid/squid.conf:/etc/squid3/squid.conf --volume /home/docker/squid/cache:/var/spool/squid3 sameersbn/squid:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install Docker | |
wget -O - https://get.docker.io |sh | |
# Prepare Squid conf | |
mkdir -p /home/docker/squid | |
wget -O /home/docker/squid/squid.conf https://gist.githubusercontent.com/KrustyHack/ae522e499ebede96effc39ab50ae40ee/raw/1262ff96528df31dd6a60808796a189e3f1249fe/squid-3.3.default.conf | |
# Run Squid Docker | |
docker run --name squid -d --restart=always \ | |
--publish 3128:3128 \ | |
--volume /home/docker/squid/squid.conf:/etc/squid3/squid.conf \ | |
--volume /home/docker/squid/cache:/var/spool/squid3 \ | |
sameersbn/squid:latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment