Apt-Cacher-ng 搭建缓存服务器

docker pull minimum2scp/apt-cacher-ng

docker run -d -p 3142:3142 --name=cache -e ACNG_BACKENDS_DEBIAN=http://ftp.jp.debian.org/debian/ minimum2scp/apt-cacher-ng

docker run -d -p 3142:3142 --name=cache -e ACNG_BACKENDS_DEBIAN=http://ftp.jp.debian.org/debian/ -e http_proxy=http://109.105.4.159:9527 -e https_proxy=http://109.105.4.159:9527 registry.bst-1.cns.bstjpc.com:5000/minimum2scp/apt-cacher-ng

echo 'Acquire::http { Proxy "http://192.168.111.111:3142"; };' >> /etc/apt/apt.conf.d/01proxy

docker build --build-arg http_proxy=http://192.168.1.111:3142 --build-arg https_proxy=http://192.168.1.111:3142 -t sshd:ubuntu .

原文地址:https://www.cnblogs.com/mhc-fly/p/7577572.html