Skip to content

Instantly share code, notes, and snippets.

@2xyo
Last active December 13, 2017 12:46
Show Gist options
  • Save 2xyo/307663022986088d273ddd5d0c9df631 to your computer and use it in GitHub Desktop.
Save 2xyo/307663022986088d273ddd5d0c9df631 to your computer and use it in GitHub Desktop.
Docker proxy
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