Runs squid3 and apt-cacher-ng servers in one container.
Create .config/systemd/user/proxy-cache.service or add as system wide service file
[Unit]
Description=proxy-cache container
[Service]
TimeoutStartSec=0
Restart=always
#ExecStartPre=/usr/bin/docker pull quay.io/bigm/proxy-cache
ExecStartPre=-/usr/bin/docker rm -f proxy-cache
ExecStart=/usr/bin/docker run --rm --name=proxy-cache -v /var/cache/apt:/var/cache/apt-cacher-ng -v /var/cache/squid3:/var/spool/squid3 -p 3142:3142 -p 3128:3128 bigm/proxy-cache
ExecStop=-/usr/bin/docker rm -f proxy-cache
[Install]
WantedBy=default.target
Enable/start the service
systemctl --user enable proxy-cache
systemctl --user start proxy-cache
Content type
Image
Digest
sha256:9e8ddc222…
Size
86.1 MB
Last updated
about 8 years ago
docker pull bigm/proxy-cache