Last active
December 13, 2017 12:46
-
-
Save 2xyo/307663022986088d273ddd5d0c9df631 to your computer and use it in GitHub Desktop.
Docker proxy
This file contains 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 build \ | |
--build-arg http_proxy=$http_proxy \ | |
--build-arg HTTP_PROXY=$http_proxy \ | |
--build-arg https_proxy=$https_proxy \ | |
--build-arg HTTPS_PROXY=$https_proxy \ | |
--build-arg no_proxy=$no_proxy \ | |
--build-arg NO_PROXY=$no_proxy \ | |
-t tag:version . | |
docker run \ | |
-e http_proxy=$http_proxy \ | |
-e HTTP_PROXY=$http_proxy \ | |
-e https_proxy=$https_proxy \ | |
-e HTTPS_PROXY=$https_proxy \ | |
-e no_proxy=$no_proxy \ | |
-e NO_PROXY=$no_proxy \ | |
-it --rm python:3.6-alpine /bin/ash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment