Skip to content

nwtgck/docker-apt-cacher-ng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published