From 4a69a127fca82c11373254a26e6d8c7867effdb4 Mon Sep 17 00:00:00 2001 From: Radoslaw Jablonski Date: Fri, 2 Nov 2018 11:17:03 +0000 Subject: 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 --- docs/release/userguide/docker.userguide.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/release') 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 -- cgit 1.2.3-korg