Last active
June 28, 2023 12:51
-
-
Save exaV/6978783f0f6060471bdde5823021982b to your computer and use it in GitHub Desktop.
run Alpine Linux with corporate proxy setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run --rm -it --network=host -e http_proxy="$HTTP_PROXY" -e https_proxy="$HTTPS_PROXY" -v $PWD/corporate_proxy.crt:/usr/local/share/ca-certificates/proxy.crt --entrypoint /bin/sh alpine -c "cat /usr/local/share/ca-certificates/proxy.crt >> /etc/ssl/certs/ca-certificates.crt; /bin/sh" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment