启动容器
$ sudo docker start squid
重启容器
$ sudo docker restart squid
docker run --name squid -d --restart=always
--publish 3128:3128
--volume /srv/docker/squid/cache:/var/spool/squid
sameersbn/squid:3.5.27-2
配置
acl all src all
http_access allow all
终端下代理
export http_proxy=http://192.168.21.2:3128 && export https_proxy=http://192.168.21.2:3128