My host server need a proxy to talk to the outside world. It's defined in env like http_proxy=http://10.10.123.123:8080 https_proxy=http://10.10.123.123:8080.
I run an image tensorflow/tensorflow, container named tf1.
Inside tf1(by exec into the container), I would like to install some package like grpcio and tensorflow-serving-api with pip, but fail with network error.
How can I use the proxy of the host inside the container? I have tried exec with -e option but fail because of low version docker, so I don't know whether it works.
OS: CentOS 7.2, Docker:1.12.3