Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

License

NotificationsYou 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

Docker Cloud Automated buildDocker 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

Usemake to build the image.

How to run it

Simply runmake 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 soonas possible.

Pull request is welcomed.

Reference:

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp