HUB
Sign inSign up
apt-cacher-ng logo

nwtgck/apt-cacher-ng

By nwtgck

•Updated over 7 years ago

Docker image for caching apt powered by apt-cacher-ng

Image
0

1.9K

nwtgck/apt-cacher-ng repository overview

⁠docker-apt-cacher-ng

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

docker-apt-cacher-ng demo

⁠Run

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.

⁠Cache Usage

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)

Tag summary

Content type

Image

Digest

Size

61.5 MB

Last updated

over 7 years ago

docker pull nwtgck/apt-cacher-ng