Docker image for caching apt powered by apt-cacher-ng
1.9K
Docker image for caching apt powered by apt-cacher-ng.

Run the cache server as follows.
docker run -it -p 3142:3142 -v $PWD/docker-volumes/apt-cacher-ng:/var/cache/apt-cacher-ng nwtgck/apt-cacher-ng
All caches are persisted under $PWD/docker-volumes/. So, you can easily to down the server and restart.
Suppose you would like to use ubuntu:16.04. You can run as follows, specifying http_proxy=<DOCKER_HOST_IP>:3142.
docker run -it -e http_proxy=http://192.168.11.3:3142 ubuntu:16.04
(NOTE: 192.168.11.3 is my docker host. Replace it with yours)
Content type
Image
Digest
Size
61.5 MB
Last updated
over 7 years ago
docker pull nwtgck/apt-cacher-ng