bugz adc6335631 Initial apt-cache-ng setup. | hace 4 años | |
---|---|---|
image | hace 4 años | |
.env | hace 4 años | |
README.md | hace 4 años | |
docker-compose.yml | hace 4 años |
From: https://apimirror.com/docker~17/engine/examples/apt-cacher-ng/index
I have updated it so it runs as any UID:GID. See the above on various options to utilize this with apt.
I am using option #2, but localizing it with an export statement. This sets the http_proxy, but just for that one statement.
Build image, and start the container.
docker-compose build
docker-compose up -d
"DOCKER_HOST=$(ip -4 addr show docker0 | grep -Po 'inet \K[\d.]+')"
This will give you the IP address of the host system to be used in your builds.
Open http://127.0.0.1:3142/acng-report.html in your web browser.
RUN export http_proxy=http://192.168.254.83:3142 \
&& apt-get update && apt-get -y install wget build-essential unzip