Skip to content

Commit 3e6cf08

Browse files
schnipseljagdwrouesnel
authored andcommitted
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
1 parent a52beb6 commit 3e6cf08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This package is available for Docker:
1313
# Start an example database
1414
docker run --net=host -it --rm -e POSTGRES_PASSWORD=password postgres
1515
# Connect to it
16-
docker run -e DATA_SOURCE_NAME="postgresql://postgres:password@localhost:5432/?sslmode=disable" -p 9187:9187 wrouesnel/postgres_exporter
16+
docker run --net=host -e DATA_SOURCE_NAME="postgresql://postgres:password@localhost:5432/?sslmode=disable" wrouesnel/postgres_exporter
1717
```
1818

1919
## Building and running

0 commit comments

Comments
 (0)