summaryrefslogtreecommitdiffstats
path: root/docs/release/userguide/docker.userguide.rst
diff options
context:
space:
mode:
authorRadoslaw Jablonski <radoslawx.jablonski@intel.com>2018-11-02 11:17:03 +0000
committerRadoslaw Jablonski <radoslawx.jablonski@intel.com>2018-11-16 12:31:24 +0000
commit4a69a127fca82c11373254a26e6d8c7867effdb4 (patch)
tree686b6d7f3e6916cb6c9444284714a276190cf8af /docs/release/userguide/docker.userguide.rst
parent62972c1f478949a5142368653a6b639972c27910 (diff)
docker.userguide: Add --network=host option for manual docker build examples
On Ubuntu hosts (16.04 & 18.04) there might be problem to build docker collectd container if host is behind a proxy even if proxy variables are set correctly - when using "--network=host" option problem is resolved. This option has no negative impact on other host systems so adding it to default command line build example. Change-Id: I69ebd13f1e05658d8ad18e3ec379f515312e7b74 Signed-off-by: Radoslaw Jablonski <radoslawx.jablonski@intel.com>
Diffstat (limited to 'docs/release/userguide/docker.userguide.rst')
-rw-r--r--docs/release/userguide/docker.userguide.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/release/userguide/docker.userguide.rst b/docs/release/userguide/docker.userguide.rst
index 4947ec7e..6f251641 100644
--- a/docs/release/userguide/docker.userguide.rst
+++ b/docs/release/userguide/docker.userguide.rst
@@ -572,7 +572,7 @@ Build the collectd docker image
$ git clone https://gerrit.opnfv.org/gerrit/barometer
$ cd barometer/docker/barometer-collectd
$ sudo docker build -t opnfv/barometer-collectd --build-arg http_proxy=`echo $http_proxy` \
- --build-arg https_proxy=`echo $https_proxy` -f Dockerfile .
+ --build-arg https_proxy=`echo $https_proxy` --network=host -f Dockerfile .
.. note::
Main directory of barometer source code (directory that contains 'docker',
@@ -702,7 +702,7 @@ Build influxdb image from Dockerfile
$ cd barometer/docker/barometer-influxdb
$ sudo docker build -t opnfv/barometer-influxdb --build-arg http_proxy=`echo $http_proxy` \
- --build-arg https_proxy=`echo $https_proxy` -f Dockerfile .
+ --build-arg https_proxy=`echo $https_proxy` --network=host -f Dockerfile .
.. note::
In the above mentioned ``docker build`` command, http_proxy & https_proxy arguments needs to