apt-cacher-ng service dockerized
Example from https://docs.docker.com/engine/examples/apt-cacher-ng/
Build:
docker build -t apt-cacher .
Run:
docker run -d -p 3142:3142 --name apt-cacher-run joaquindlz/docker-apt-cacher-ng
... and then you can run containers with:
docker run -t -i --rm --link apt-cacher-run:apt-cache -e "http_proxy=http://apt-cache:3142/" debian bash
Docker hub: https://hub.docker.com/r/joaquindlz/docker-apt-cacher-ng/