Proxy環境でイメージをビルドするDockerfile:ARG http_proxy=http://proxy.foo.com RUN apt-get update --build-argオプションdocker build --build-arg http_proxy=http://proxy.foo.com -t myimage . 参考:コンテナ実行時にプロキシを適用するDockerfile:ENV http_proxy=http://proxy.foo.com -eオプションdocker run -e http_proxy=http://proxy.foo.com -it myimage bash 参考 |
|