Dockerfile
to create a Docker container image for Privoxy.
Privoxy is a non-caching web proxy with advanced filtering capabilities for enhancing privacy, modifying web page data and HTTP headers, controlling access, and removing ads and other obnoxious Internet junk.
If you find this image useful here's how you can help:
- Send a pull request with your awesome features and bug fixes
- Help users resolve their issues.
Before reporting your issue please try updating Docker to the latest version and check if it resolves the issue. Refer to the Docker installation guide for instructions.
SELinux users should try disabling SELinux using the command setenforce 0
to see if it resolves the issue.
If the above recommendations do not help then report your issue along with the following information:
- Output of the
docker version
anddocker info
commands - The
docker run
command ordocker-compose.yml
used to start the image. Mask out the sensitive bits.
Automated builds of the image are available on Dockerhub and is the recommended method of installation.
docker pull ziobombo/privoxy:latest
Alternatively you can build the image yourself.
docker build -t ziobombo/privoxy github.com/ziobombo/docker-privoxy
Start privoxy using:
docker run -d \
--name=privoxy \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Europe/Paris \
-p 8118:8118 \
-v <path to data>:/config \
--restart always \
ziobombo/privoxy
Alternatively, you can use the sample docker-compose.yml file to start the container using Docker Compose
Configure your web browser network/connection settings to use the proxy server which is available at <ip>:8118
If you are using Linux then you can also add the following lines to your .bashrc
file allowing command line applications to use the proxy server for outgoing connections.
export ftp_proxy=http://<ip>:8118
export http_proxy=http://<ip>:8118
export https_proxy=http://<ip>:8118
To access the Privoxy logs, you can use:
docker logs -f privoxy
To upgrade to newer releases:
- Download the updated Docker image:
docker pull ziobombo/privoxy:latest
- Stop the currently running image:
docker stop privoxy
- Remove the stopped container
docker rm -v privoxy
- Start the updated image
docker run -name privoxy -d \
[OPTIONS] \
ziobombo/privoxy:latest
For debugging and maintenance purposes you may want access the containers shell. If you are using Docker version 1.3.0
or higher you can access a running containers shell by starting bash
using docker exec
:
docker exec -it privoxy bash