summaryrefslogtreecommitdiffstats
path: root/docs/release/userguide
diff options
context:
space:
mode:
authorRadoslaw Jablonski <radoslawx.jablonski@intel.com>2018-10-12 15:03:00 +0100
committerRadoslaw Jablonski <radoslawx.jablonski@intel.com>2018-10-18 16:58:46 +0100
commit86381552a74920fd5c33ccae1e98fd4f2ae5479f (patch)
treedf0436405e9cafcaaac5e2e9bbd96d94a0447e22 /docs/release/userguide
parent3e269c4c295e3dd81dfeaebe9de4c4a702e7f1d5 (diff)
docker.userguide: Fix manual grafana and influxdb run commands
Previously ports were exported for grafana and influxdb but no network was mapped - no connection was possible between both containers (only connection from host to container was possible). Now container network is mapped to host - the same approach is used by ansible automatic installation for collectd, influxdb and grafana containers. Change-Id: I81af33d028bb8bc55590324694af93993f0f1d8c Signed-off-by: Radoslaw Jablonski <radoslawx.jablonski@intel.com>
Diffstat (limited to 'docs/release/userguide')
-rw-r--r--docs/release/userguide/docker.userguide.rst13
1 files changed, 8 insertions, 5 deletions
diff --git a/docs/release/userguide/docker.userguide.rst b/docs/release/userguide/docker.userguide.rst
index ec856555..4c6126b6 100644
--- a/docs/release/userguide/docker.userguide.rst
+++ b/docs/release/userguide/docker.userguide.rst
@@ -741,7 +741,8 @@ Run the InfluxDB docker image
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. code:: bash
- $ sudo docker run -tid -v /var/lib/influxdb:/var/lib/influxdb -p 8086:8086 -p 25826:25826 opnfv/barometer-influxdb
+ $ sudo docker run -tid -v /var/lib/influxdb:/var/lib/influxdb --net=host\
+ --name bar-influxdb opnfv/barometer-influxdb
Check your docker image is running
@@ -763,16 +764,18 @@ Connecting to an influxdb instance running on local system and adding own custom
.. code:: bash
$ cd <BAROMETER_REPO_DIR>
- $ sudo docker run -tid -v /var/lib/grafana:/var/lib/grafana -v ${PWD}/docker/barometer-grafana/dashboards:/opt/grafana/dashboards \
- -p 3000:3000 opnfv/barometer-grafana
+ $ sudo docker run -tid -v /var/lib/grafana:/var/lib/grafana \
+ -v ${PWD}/docker/barometer-grafana/dashboards:/opt/grafana/dashboards \
+ --name bar-grafana --net=host opnfv/barometer-grafana
Connecting to an influxdb instance running on remote system with hostname of someserver and IP address
of 192.168.121.111
.. code:: bash
- $ sudo docker run -tid -v /var/lib/grafana:/var/lib/grafana -p 3000:3000 -e \
- influxdb_host=someserver --add-host someserver:192.168.121.111 opnfv/barometer-grafana
+ $ sudo docker run -tid -v /var/lib/grafana:/var/lib/grafana --net=host -e \
+ influxdb_host=someserver --add-host someserver:192.168.121.111 --name \
+ bar-grafana opnfv/barometer-grafana
Check your docker image is running