From 3e6cf08dc56a19c6c9a9388535d1dd6239b01219 Mon Sep 17 00:00:00 2001 From: Joscha Date: Tue, 20 Feb 2018 09:27:58 +0100 Subject: [PATCH] In docker example both containers should run on the host net (#149) * In docker example both containers should run on the host net * remove unecessary portmapping in docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0099c049..e42e1706 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ This package is available for Docker: # Start an example database docker run --net=host -it --rm -e POSTGRES_PASSWORD=password postgres # Connect to it -docker run -e DATA_SOURCE_NAME="postgresql://postgres:password@localhost:5432/?sslmode=disable" -p 9187:9187 wrouesnel/postgres_exporter +docker run --net=host -e DATA_SOURCE_NAME="postgresql://postgres:password@localhost:5432/?sslmode=disable" wrouesnel/postgres_exporter ``` ## Building and running