export HTTP_PROXY=http://192.168.100.2:8118 export HTTPS_PROXY=http://192.168.100.2:8118 export http_proxy=http://192.168.100.2:8118 export https_proxy=http://192.168.100.2:8118 docker stop toolserver docker rm -f toolserver 2>/dev/null || true docker build -t toolserver . --build-arg http_proxy=http://192.168.100.2:8118 --build-arg https_proxy=http://192.168.100.2:8118