Skip to content

A docker image for caching apt packages based on squid-deb-proxy.

License

Notifications You must be signed in to change notification settings

NobodyXu/apt-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

apt-cache

Docker Cloud Automated build Docker Cloud Build Status

MicroBadger Size (tag)

A docker image for caching apt packages for (the following is in the whitelist /etc/squid-deb-proxy/mirror-dstdomain.acl.d/)

  • debian
  • raspberry pi
  • ubuntu official source
  • ubuntu PPA
  • canonical's partner
  • docker-ce

source based on squid-deb-proxy.

Usage

Pull from docker hub

Simply run:

docker pull nobodyxu/apt-cache

Build it yourself

Use make to build the image.

How to run it

Simply run make run to run the image as a container and also create a volume and publish the port 8000 for you.

Use the proxy

Then add the following to /etc/apt/apt.conf.d/01proxy (create it if not exist) in your other containers or other machines:

Acquire::HTTP::Proxy "http://${HOST_IP}:${APT_PROXY_PORT}";
Acquire::HTTPS::Proxy "false";'

and it is all set!

If you have any problem using this repository or have advices on how to improve, please open a github issue and I will answer you as soon as possible.

Pull request is welcomed.

Reference:

  1. https://github.com/sameersbn/docker-apt-cacher-ng
  2. https://gist.github.com/dergachev/8441335

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy