/docker-squid

Primary LanguageShellMIT LicenseMIT

docker-squid

Manual build

build the container

docker build -t docker-squid:latest .

generate passwd file with own users

docker run --rm docker-squid:latest htpasswd -nb {USER} {PASSWORD} >> passwd

run the container

docker run -d -p 3128:3128 -v $(pwd)/passwd:/etc/squid/passwd docker-squid:latest

Prebuilt from Dockerhub

pull from dockerhub

docker pull eugenetaranov/docker-squid

generate passwd file with own users

docker run --rm eugenetaranov/docker-squid htpasswd -nb {USER} {PASSWORD} >> passwd

run the container

docker run -d -p 3128:3128 -v $(pwd)/passwd:/etc/squid/passwd eugenetaranov/docker-squid