Created
October 30, 2015 04:34
-
-
Save astrsk-hori/2f1c17411cbbec711944 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
#!/bin/sh | |
## http://qiita.com/speg03/items/4b8573686e7bbf218b61 | |
## 上記から取得 | |
if [ $# != 1 ]; then | |
echo "Usage: $0 DOCKER_IMAGE" | |
exit 1 | |
fi | |
cat <<EOF | docker build -t $1 - | |
FROM $1 | |
ENV http_proxy $http_proxy | |
ENV https_proxy $https_proxy | |
ENV no_proxy $no_proxy | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment