Squid caching proxy docker image
1.3K
squid is a caching proxy for the Web, supporting HTTP and HTTPS.
This docker image supports a container with following features:
Pull the image from docker Hub:
docker pull orangecloudfoundry/squid
Clone Github repository:
git clone https://github.com/orange-cloudfoundry/squid.git
Then, build the image:
docker build -t squid .
Note:
If you need to use proxy for Internet access (e.g: export http://IP_proxy:3128), you have to use the following syntax:
export http_proxy="http://`IP_proxy`:3128"
export https_proxy="http://`IP_proxy`:3128"
docker build --build-arg http_proxy=${http_proxy} --build-arg https_proxy=${https_proxy} -t squid .
Launch the image:
docker run -p 3128:3128 -d --name squid -d orangecloudfoundry/squid
Acces to the container:
docker exec -it squid sh
Another option is to deploy the container threw the Docker Bosh Release.
In the following example:
/var/spool/squid is mounted in the container (for cache directory)Example of bosh deployment manifest:
instance_groups:
- name: internet-relay
instances: 1
vm_type: small
stemcell: trusty
...
jobs:
- {release: docker, name: docker}
- {release: docker, name: containers}
properties:
containers:
- name: internetsquid
image: "orangecloudfoundry/squid"
log_driver: syslog
bind_ports:
- "3128:3128"
bind_volumes:
- "/var/spool/squid"
Content type
Image
Digest
Size
63.4 MB
Last updated
over 8 years ago
docker pull orangecloudfoundry/squid