Skip to content

Instantly share code, notes, and snippets.

@exaV
Last active June 28, 2023 12:51
Show Gist options
  • Save exaV/6978783f0f6060471bdde5823021982b to your computer and use it in GitHub Desktop.
Save exaV/6978783f0f6060471bdde5823021982b to your computer and use it in GitHub Desktop.
run Alpine Linux with corporate proxy setup
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