https://github.com/nobodyxu/apt-cache
A docker image for caching apt packages based on squid-deb-proxy.
https://github.com/nobodyxu/apt-cache
apt apt-cache debian-buster docker docker-cloud docker-image server squid-deb-proxy
Last synced: 10 months ago
JSON representation
A docker image for caching apt packages based on squid-deb-proxy.
- Host: GitHub
- URL: https://github.com/nobodyxu/apt-cache
- Owner: NobodyXu
- License: mit
- Created: 2019-07-23T14:22:16.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-16T13:04:14.000Z (over 6 years ago)
- Last Synced: 2025-03-25T02:17:38.909Z (11 months ago)
- Topics: apt, apt-cache, debian-buster, docker, docker-cloud, docker-image, server, squid-deb-proxy
- Language: Shell
- Size: 13.7 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# apt-cache



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